zmievsa / cached_classproperty

cached_property for class properties instead of instance properties
MIT License
7 stars 3 forks source link

Support for Python 3.8 and 3.9 #5

Closed r4victor closed 6 months ago

r4victor commented 6 months ago

cached_classproperty claims to support Python >= 3.8 but works only on Python >= 3.10 because of the typing union operator used ("|"). The operator should be replaced with Union/Optional to support versions before 3.10.

Related to https://github.com/zmievsa/pydantic-duality/issues/8.

zmievsa commented 6 months ago

Thanks! Will take care of it.

zmievsa commented 6 months ago

Released as a part of 1.0.1. Big thanks!