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
53 stars 49 forks source link

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

Closed fallenpegasus closed 10 months ago

fallenpegasus commented 10 months 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 10 months ago

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