[issue44922] isinstance breaks on imported dataclasses

2021-08-15 Thread Oleg Baskakov
Oleg Baskakov added the comment: 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("qwer

[issue44922] isinstance breaks on imported dataclasses

2021-08-15 Thread Oleg Baskakov
New submission from Oleg Baskakov : Hey I was trying to import dataclasses from another file and somehow isinstance doesn't work anymore: main.py: ``` import codegen from dataclasses import dataclass @dataclass class AtomX: my_symbol: str quantity: str = "" codegen.