diff options
author | say <say@yandex-team.com> | 2023-03-31 10:07:15 +0300 |
---|---|---|
committer | say <say@yandex-team.com> | 2023-03-31 10:07:15 +0300 |
commit | e163b69a87c70baac07bd99142916735e0c283fa (patch) | |
tree | 73e22c0f9e975ff6dc70f38534ec84588587d25c /library/cpp/pybind/init.h | |
parent | 6be8bf780352147bcac5afec43505883b69229a0 (diff) | |
download | ydb-e163b69a87c70baac07bd99142916735e0c283fa.tar.gz |
Swith flake8 to custom lint schema
Diffstat (limited to 'library/cpp/pybind/init.h')
-rw-r--r-- | library/cpp/pybind/init.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/library/cpp/pybind/init.h b/library/cpp/pybind/init.h deleted file mode 100644 index 58874574ed6..00000000000 --- a/library/cpp/pybind/init.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#define PY_SSIZE_T_CLEAN -#include <Python.h> - -#include "ptr.h" - -namespace NPyBind { -#if PY_MAJOR_VERSION >= 3 - -#define PYBIND_MODINIT(name) PyMODINIT_FUNC PyInit_##name() - - inline PyObject* ModInitReturn(TPyObjectPtr&& modptr) { - return modptr.Release(); - } - -#else - -#define PYBIND_MODINIT(name) PyMODINIT_FUNC init##name() - - inline void ModInitReturn(TPyObjectPtr&&) { - } - -#endif -} |