diff --git a/setup.py b/setup.py index 43670c7..f8b490c 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( name="smartcitizen-connector", - version="0.1.1", + version="0.1.2", description="Python connector to download information collected in SmartCitizen API", author="Óscar González", license="GNU General Public License v3", diff --git a/src/smartcitizen_connector/smartcitizen_connector.py b/src/smartcitizen_connector/smartcitizen_connector.py index 8ddba33..ad499e8 100644 --- a/src/smartcitizen_connector/smartcitizen_connector.py +++ b/src/smartcitizen_connector/smartcitizen_connector.py @@ -170,7 +170,7 @@ def api_url(self) -> str: return self._api_url @staticmethod - def get_kits() -> list[Kit]: + def get_kits() -> List[Kit]: kits = get(API_URL + 'kits/?per_page=200') if kits.status_code == 429: @@ -219,7 +219,7 @@ def get_devices( tags: Optional[list] = None, tag_method: Optional[str] = 'any', full: Optional[bool] = False, - ) -> list[DeviceSummary]: + ) -> List[DeviceSummary]: """ Gets devices from Smart Citizen API with certain requirements Parameters