diff options
author | say <say@yandex-team.com> | 2023-12-08 17:40:48 +0300 |
---|---|---|
committer | say <say@yandex-team.com> | 2023-12-08 19:58:59 +0300 |
commit | 914f57e3243f53dd89dd3adb4d8b6d35c47f46ce (patch) | |
tree | 98a1f1f1f5e2c38db3a78da10aeb7eb7d4e952e0 /library/cpp/pybind/pod.cpp | |
parent | e61293d91ee7c923944f627d8e1138bcb17cacad (diff) | |
download | ydb-914f57e3243f53dd89dd3adb4d8b6d35c47f46ce.tar.gz |
Make support_retries() and get_type() methods of object instead of class ones. Reduce get_type_name() usage.
Diffstat (limited to 'library/cpp/pybind/pod.cpp')
-rw-r--r-- | library/cpp/pybind/pod.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/library/cpp/pybind/pod.cpp b/library/cpp/pybind/pod.cpp deleted file mode 100644 index 3cf030e537b..00000000000 --- a/library/cpp/pybind/pod.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "pod.h" - -namespace NPyBind { - class TPODAttrGetter: public TBaseAttrGetter<TPOD> { - public: - bool GetAttr(PyObject*, const TPOD& self, const TString& attr, PyObject*& res) const override { - res = self.GetAttr(attr.c_str()); - return res != nullptr; - } - }; - - TPODTraits::TPODTraits() - : MyParent("TPOD", "simple struct") - { - AddGetter("", new TPODAttrGetter); - } - -} |