We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4bd5d5 commit 32358c5Copy full SHA for 32358c5
1 file changed
IPython/core/guarded_eval.py
@@ -165,7 +165,10 @@ def _has_original_dunder_external(
165
value_module = getmodule(value_type)
166
if not value_module or not value_module.__name__:
167
return False
168
- if value_module.__name__.startswith(member_type.__name__):
+ if (
169
+ value_module.__name__ == member_type.__name__
170
+ or value_module.__name__.startswith(member_type.__name__ + ".")
171
+ ):
172
return True
173
if method_name == "__getattribute__":
174
# we have to short-circuit here due to an unresolved issue in
0 commit comments