cyberjunky / python-garminconnect

Python 3 API wrapper for Garmin Connect to get activity statistics
MIT License
802 stars 132 forks source link

Errors from get_device_alarms(self) #177

Closed theboywho closed 7 months ago

theboywho commented 7 months ago

With 0.2.10. Running example.py, I get:

Traceback (most recent call last):
  File "python-garminconnect/./example.py", line 20, in <module>
    from garminconnect import (
  File "python-garminconnect/garminconnect/__init__.py", line 15, in <module>
    class Garmin:
  File "python-garminconnect/garminconnect/__init__.py", line 727, in Garmin
    def get_device_alarms(self) -> List[str, Any]:
                                   ~~~~^^^^^^^^^^
  File "/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py", line 358, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py", line 1569, in __getitem__
    _check_generic(self, params, self._nparams)
  File "/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py", line 286, in _check_generic
    raise TypeError(f"Too {'many' if alen > elen else 'few'} arguments for {cls};"
TypeError: Too many arguments for typing.List; actual 2, expected 1