Skip to content

python-miio not compatible with Python <=3.5.1 #494

Closed
@j-muller

Description

@j-muller

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions