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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃Ч Switch to mypy --strict #308

Merged
merged 6 commits into from
May 17, 2024
Merged

馃Ч Switch to mypy --strict #308

merged 6 commits into from
May 17, 2024

Conversation

hf-kklein
Copy link
Contributor

No description provided.

@hf-kklein hf-kklein marked this pull request as ready for review May 17, 2024 06:56
@@ -36,7 +36,7 @@ deps =
-rrequirements.txt
-r dev_requirements/requirements-type_check.txt
commands =
mypy --show-error-codes src/kohlrahbi
mypy --show-error-codes src/kohlrahbi --strict
mypy --show-error-codes unittests
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unittests strict zu linten ist ne flei脽aufgabe f眉r einen anderen tag

@hf-kklein hf-kklein merged commit 3dbc4e7 into main May 17, 2024
10 checks passed
@hf-kklein hf-kklein deleted the mypy-strict2 branch May 17, 2024 06:58
@@ -48,7 +48,7 @@ def table_header_starts_with_text_edifact_struktur(table: Table) -> bool:
return table.cell(row_idx=0, col_idx=0).text.strip() == "EDIFACT Struktur"


def is_item_header_of_change_history_section(item: Paragraph | Table | None, style_name: str) -> bool:
def is_item_header_of_change_history_section(item: Paragraph | Table | None, style_name: str) -> TypeGuard[Paragraph]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not a bool?
This questions is also valid for the other is_... function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

None yet

3 participants