diff --git a/.gitignore b/.gitignore index 2ff8473..11fa837 100644 --- a/.gitignore +++ b/.gitignore @@ -100,5 +100,3 @@ pygrocy.egg-info/ .tox/ .coverage -.python-version -dist/ diff --git a/pygrocy/data_models/product.py b/pygrocy/data_models/product.py index b7c6461..a962b8f 100644 --- a/pygrocy/data_models/product.py +++ b/pygrocy/data_models/product.py @@ -1,5 +1,5 @@ from datetime import datetime -from typing import List, Union +from typing import List, Optional from pygrocy.base import DataModel from pygrocy.grocy_api_client import ( @@ -26,7 +26,7 @@ def barcode(self) -> str: return self._barcode @property - def amount(self) -> Union[float, None]: + def amount(self) -> Optional[float]: return self._amount diff --git a/setup.py b/setup.py index 53dcab1..b95e38b 100644 --- a/setup.py +++ b/setup.py @@ -5,13 +5,13 @@ setuptools.setup( name="pygrocy", - version="2.0.2", + version="2.0.0", author="Sebastian Rutofski", author_email="kontakt@sebastian-rutofski.de", description="", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/looching/pygrocy", + url="https://github.com/sebrut/pygrocy", license="MIT", packages=setuptools.find_packages(), install_requires=[