diff options
author | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 10:08:57 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 10:39:21 +0300 |
commit | 329f805999a3b41e406959a17cf35ab193ef05a5 (patch) | |
tree | 9a3059df4d544b6c9d6f474344e52f65bd13b4c1 /library/cpp/pybind/v2.cpp | |
parent | 02ea6261088be81bbc455933cecf8b41726946c1 (diff) | |
download | ydb-329f805999a3b41e406959a17cf35ab193ef05a5.tar.gz |
Revert commit rXXXXXX,[build/plugins/ytest] Allow prebuilt linters for opensource
Diffstat (limited to 'library/cpp/pybind/v2.cpp')
-rw-r--r-- | library/cpp/pybind/v2.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/library/cpp/pybind/v2.cpp b/library/cpp/pybind/v2.cpp deleted file mode 100644 index edce0be7195..00000000000 --- a/library/cpp/pybind/v2.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include "v2.h" -namespace NPyBind { - namespace Detail { - template <> - PyTypeObject* GetParentType<void>(const TPyModuleDefinition&) { - return nullptr; - } - - - template <bool InitEnabled> - void UpdateClassNamesInModule(TPyModuleDefinition& M, const TString& name, PyTypeObject* pythonType) { - if (!InitEnabled) { - return; - } - M.ClassName2Type[name] = pythonType; - } - - template <bool InitEnabled> - void UpdateGetContextInModule(TPyModuleDefinition& M, const TString& name, IGetContextBase* base) { - if (!InitEnabled) { - return; - } - M.Class2ContextGetter[name] = base; - } - - TPyModuleRegistry::TPyModuleRegistry() { -#if PY_MAJOR_VERSION >= 3 - NPrivate::AddFinalizationCallBack([this]() { - if (UnnamedModule) { - UnnamedModule.Clear(); - } - Name2Def.clear(); - }); -#endif - } - template void UpdateClassNamesInModule<false>(TPyModuleDefinition& M, const TString& name, PyTypeObject* pythonType); - template void UpdateClassNamesInModule<true>(TPyModuleDefinition& M, const TString& name, PyTypeObject* pythonType); - - - template void UpdateGetContextInModule<false>(TPyModuleDefinition& M, const TString& name, IGetContextBase* pythonType); - template void UpdateGetContextInModule<true>(TPyModuleDefinition& M, const TString& name, IGetContextBase* pythonType); - }//Detail -}//NPyBind |