Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ certifi==2023.7.22
# via requests
charset-normalizer==2.1.0
# via requests
colorama==0.4.6
# via sphinx
docutils==0.18.1
# via
# sphinx
Expand All @@ -25,32 +23,32 @@ idna==3.3
imagesize==1.4.1
# via sphinx
iso3166==2.1.1
# via -r .\docs\requirements.in
# via -r docs/requirements.in
jinja2==3.1.2
# via sphinx
markupsafe==2.1.3
# via jinja2
networkx==3.1
# via -r .\docs\requirements.in
# via -r docs/requirements.in
packaging==23.1
# via sphinx
pydantic==2.3.0
# via -r .\docs\requirements.in
pydantic-core==2.6.3
pydantic==2.4.0
# via -r docs/requirements.in
pydantic-core==2.10.0
# via pydantic
pygments==2.16.1
# via sphinx
pyhumps==3.8.0
# via -r .\docs\requirements.in
# via -r docs/requirements.in
requests==2.31.0
# via
# -r .\docs\requirements.in
# -r docs/requirements.in
# sphinx
snowballstemmer==2.2.0
# via sphinx
sphinx==7.2.6
# via
# -r .\docs\requirements.in
# -r docs/requirements.in
# sphinx-rtd-theme
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
Expand All @@ -59,7 +57,7 @@ sphinx==7.2.6
# sphinxcontrib-qthelp
# sphinxcontrib-serializinghtml
sphinx-rtd-theme==1.3.0
# via -r .\docs\requirements.in
# via -r docs/requirements.in
sphinxcontrib-applehelp==1.0.7
# via sphinx
sphinxcontrib-devhelp==1.0.5
Expand All @@ -75,7 +73,7 @@ sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9
# via sphinx
typeguard==4.1.5
# via -r .\docs\requirements.in
# via -r docs/requirements.in
typing-extensions==4.8.0
# via
# pydantic
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ annotated-types==0.5.0
# via pydantic
iso3166==2.1.1
# via -r requirements.in
pydantic==2.3.0
pydantic==2.4.0
# via -r requirements.in
pydantic-core==2.6.3
pydantic-core==2.10.0
# via pydantic
pyhumps==3.8.0
# via -r requirements.in
Expand Down
2 changes: 1 addition & 1 deletion src/bo4e/com/kostenposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Kostenposition(COM):

@staticmethod
def _get_inclusive_start(values: ValidationInfo) -> Optional[datetime]:
return values.data["von"] # type:ignore[attr-defined]
return values.data["von"]

# @staticmethod
# def _get_exclusive_end(values) -> Optional[datetime]:
Expand Down
2 changes: 1 addition & 1 deletion src/bo4e/com/rechnungsposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Rechnungsposition(COM):
@staticmethod
def _get_inclusive_start(values: ValidationInfo) -> datetime:
"""return the inclusive start (used in the validator)"""
return values.data["lieferung_von"] # type:ignore[attr-defined]
return values.data["lieferung_von"]

# def _get_exclusive_end(self) -> datetime:
# """return the exclusive end (used in the validator)"""
Expand Down
2 changes: 1 addition & 1 deletion src/bo4e/com/verbrauch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Verbrauch(COM):
@staticmethod
def _get_inclusive_start(values: ValidationInfo) -> Optional[datetime]:
"""a method for easier usage of the check_bis_is_later_than_von validator"""
return values.data["startdatum"] # type:ignore[attr-defined]
return values.data["startdatum"]

# def _get_exclusive_end(self) -> Optional[datetime]:
# """a method for easier usage of the check_bis_is_later_than_von validator"""
Expand Down
2 changes: 1 addition & 1 deletion src/bo4e/com/zeitreihenwert.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Zeitreihenwert(Zeitreihenwertkompakt):
@staticmethod
def _get_inclusive_start(values: ValidationInfo) -> datetime:
"""return the inclusive start (used in the validator)"""
return values.data["datum_uhrzeit_von"] # type:ignore[attr-defined]
return values.data["datum_uhrzeit_von"]

# def _get_exclusive_end(self) -> datetime:
# """return the exclusive end (used in the validator)"""
Expand Down
2 changes: 1 addition & 1 deletion src/bo4e/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def einheit_only_for_abschlagstyp_absolut( # type: ignore[no-untyped-def]
Check that einheit is only there if abschlagstyp is absolut.
Currently, (2021-12-15) only used in COM AufAbschlag.
"""
values = validation_info.data # type:ignore[attr-defined]
values = validation_info.data
if value and (not values["auf_abschlagstyp"] or (values["auf_abschlagstyp"] != AufAbschlagstyp.ABSOLUT)):
raise ValueError("Only state einheit if auf_abschlagstyp is absolute.")
return value
Expand Down