diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-19 11:08:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-19 14:12:41 +0300 |
commit | eafcbbb4f741cab7990f17eb07aab0843b242ebd (patch) | |
tree | 8fd4fd85bff95cea80b8862b52520a42a9d39cc3 /source/blender/python/intern/bpy_rna.h | |
parent | 80e5697b0ba8e5ce2a918980bc8d63668656afba (diff) |
PyAPI: use real module for bpy.types
This is needed to support `typing.get_type_hints`,
which expects each classes module to have a module '__dict__'.
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r-- | source/blender/python/intern/bpy_rna.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h index a2c2171d151..e891f5c1fc1 100644 --- a/source/blender/python/intern/bpy_rna.h +++ b/source/blender/python/intern/bpy_rna.h @@ -177,9 +177,6 @@ typedef struct { FunctionRNA *func; } BPy_FunctionRNA; -/* cheap trick */ -#define BPy_BaseTypeRNA BPy_PropertyRNA - StructRNA *srna_from_self(PyObject *self, const char *error_prefix); StructRNA *pyrna_struct_as_srna(PyObject *self, const bool parent, const char *error_prefix); |