Skip to content
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

Merged
merged 6 commits into from
Sep 11, 2024
Merged

feat(time conditions): add ub packages #441

merged 6 commits into from
Sep 11, 2024

Conversation

DeltaDaniel
Copy link
Collaborator

No description provided.

@@ -123,3 +123,14 @@ def dump_as_json(self, output_directory_path: Path) -> None:
edifact_format,
file_path,
)


def extract_number(key: str) -> float:
Copy link
Contributor

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?

Copy link
Collaborator Author

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 😬

Copy link
Contributor

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?

pytest.param("UB", float("inf"), id="UB"),
],
)
def test_extract_number(self, key: str, expected: Optional[int]):
Copy link
Contributor

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?

@DeltaDaniel DeltaDaniel enabled auto-merge (squash) September 11, 2024 15:48
@DeltaDaniel DeltaDaniel merged commit 5737de4 into main Sep 11, 2024
7 checks passed
@DeltaDaniel DeltaDaniel deleted the add-ub-packages branch September 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants