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
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.