tronikos / opower

A Python library for getting historical and forecasted usage/cost from utilities that use opower.com such as PG&E
Apache License 2.0
65 stars 59 forks source link

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' #38

Closed fallenpegasus closed 1 year ago

fallenpegasus commented 1 year ago

str | None syntax is only supported in 3.10 or later.

But pyproject.toml specifies requires-python = ">=3.7"

See https://stackoverflow.com/questions/76712720/typeerror-unsupported-operand-types-for-type-and-nonetype

tronikos commented 1 year ago

Fixed in https://github.com/tronikos/opower/commit/d983dcaecd1ef9f3821de26f6557227393cc2cd3