Closed
Description
Hi guys,
Thank you for your amazing work.
While playing with the library, I realized that the library may not be compatible with Python 3.5.1 (and prior versions) because of the behavior of typing
that changed.
In Python 3.5, running a simple from miio.vacuum import Vacuum
, results in:
[...]
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/typing.py in _type_check(arg, msg)
297 arg = _ForwardRef(arg)
298 if not isinstance(arg, (type, _TypeAlias)):
--> 299 raise TypeError(msg + " Got %.100r." % (arg,))
300 return arg
301
TypeError: Union[arg, ...]: each arg must be a type. Got <built-in function callable>.
Metadata
Metadata
Assignees
Labels
No labels