This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author baskakov
Recipients baskakov, eric.smith
Date 2021-08-16.05:20:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629091226.92.0.494235352598.issue44922@roundup.psfhosted.org>
In-reply-to
Content
Sorry, I forgot to add if __name__ line:
```
import codegen
from dataclasses import dataclass

@dataclass
class AtomX:
    my_symbol: str
    quantity: str = ""


if __name__ == "__main__":
    codegen.inheritance_map(AtomX("qwerty"))

```

So the output:
```
Traceback (most recent call last):
  File "/Users/baskakov/PycharmProjects/main.py", line 11, in <module>
    codegen.inheritance_map(AtomX("qwerty"))
  File "/Users/baskakov/PycharmProjects/codegen.py", line 5, in inheritance_map
    assert isinstance(candidate, AtomX)
AssertionError

```
History
Date User Action Args
2021-08-16 05:20:26baskakovsetrecipients: + baskakov, eric.smith
2021-08-16 05:20:26baskakovsetmessageid: <1629091226.92.0.494235352598.issue44922@roundup.psfhosted.org>
2021-08-16 05:20:26baskakovlinkissue44922 messages
2021-08-16 05:20:26baskakovcreate