Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
refactor: Update .gitignore and setup.py according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
looching committed Mar 8, 2024
1 parent d649c91 commit 3b15a2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,3 @@ pygrocy.egg-info/

.tox/
.coverage
.python-version
dist/
4 changes: 2 additions & 2 deletions pygrocy/data_models/product.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -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


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

setuptools.setup(
name="pygrocy",
version="2.0.2",
version="2.0.0",
author="Sebastian Rutofski",
author_email="[email protected]",
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=[
Expand Down

0 comments on commit 3b15a2f

Please sign in to comment.