wickman / pystachio

type-checked dictionary templating library for python
MIT License
91 stars 22 forks source link

Drop support for EOL versions, fix 3.8 __classcell__ RuntimeError #43

Closed jmcrawford45 closed 3 years ago

jmcrawford45 commented 3 years ago

Users cannot define subclasses of Struct in python3.8+ because the classcell is not propagated to type.new

monitoring-configs/jcrawford/test/test_child_sources_pex__pex_root/mon/monitor.py:270: in <module>
    class Monitor(Struct):
E   RuntimeError: __class__ not set defining 'Monitor' as <class 'pystachio.typing.Monitor'>. Was __classcell__ propagated to type.__new__?