Open wyfo opened 5 months ago
Agreed this could be much better. There's additional runtime complexity because my_extension
might itself be a submodule to a pure python root e.g. my_package.my_native_code_extension.submodule
I have opened #4213 that should fix it
Using this code
my_extension.submodule.foo.__module__
returnssubmodule
instead ofmy_extension.submodule
, as it would be expected for pure Python modules.Relates to #3900