-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(time conditions): add ub packages #441
Conversation
@@ -123,3 +123,14 @@ def dump_as_json(self, output_directory_path: Path) -> None: | |||
edifact_format, | |||
file_path, | |||
) | |||
|
|||
|
|||
def extract_number(key: str) -> float: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warum float? das wird doch nie ne komma stelle haben?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bisschen shady, aber war ein workaround um die typehints einheitlich auf ein Type zu bekommen 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not shady if it works.
aber kannst du einfach das "warum?" im code kommentieren?
unittests/test_ahbpackagetable.py
Outdated
pytest.param("UB", float("inf"), id="UB"), | ||
], | ||
) | ||
def test_extract_number(self, key: str, expected: Optional[int]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aber hier müsste dann optional float sein?
No description provided.