[issue44922] isinstance breaks on imported dataclasses
Eric V. Smith
report at bugs.python.org
Sun Aug 15 20:55:26 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
I get a circular import error:
Traceback (most recent call last):
File "main.py", line 1, in <module>
import codegen
File "/cygdrive/c/home/eric/codegen.py", line 1, in <module>
from main import AtomX
File "/cygdrive/c/home/eric/main.py", line 9, in <module>
codegen.inheritance_map(AtomX("qwerty"))
AttributeError: partially initialized module 'codegen' has no attribute 'inheritance_map' (most likely due to a circular import)
So I can't reproduce this problem.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44922>
_______________________________________
More information about the Python-bugs-list
mailing list