Skip to content

Commit 1452b36

Browse files
CopilotiMicknl
andauthored
Fix ty 0.0.25 breaking changes: configure python-version and suppress unused-type-ignore-comment
Agent-Logs-Url: https://github.com/iMicknl/python-overkiz-api/sessions/029e4ca6-507b-4b35-839f-ec0f995009a6 Co-authored-by: iMicknl <1424596+iMicknl@users.noreply.github.com>
1 parent caf4208 commit 1452b36

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,15 @@ only-packages = true
8787
exclude = ["tests/"]
8888
ignore_missing_imports = true
8989

90+
[tool.ty.environment]
91+
# Use Python 3.11 for type checking so ty resolves StrEnum from the stdlib
92+
# instead of requiring the backports.strenum package (only needed for 3.10).
93+
python-version = "3.11"
94+
9095
[tool.ty.src]
9196
exclude = ["tests/"]
97+
98+
[tool.ty.rules]
99+
# This project uses both mypy and ty; mypy's `type: ignore` comments
100+
# should not be flagged as unused by ty.
101+
unused-type-ignore-comment = "ignore"

0 commit comments

Comments
 (0)