make type checking more strict

This commit is contained in:
Jörg Thalheim
2023-11-30 13:42:15 +01:00
parent 65cdd51af2
commit 780ffb9c8f
9 changed files with 49 additions and 31 deletions

View File

@@ -8,7 +8,7 @@ class ClanHttpError(ClanError):
status_code: int
msg: str
def __init__(self, status_code: int, msg: str):
def __init__(self, status_code: int, msg: str) -> None:
self.status_code = status_code
self.msg = msg
super().__init__(msg)

View File

@@ -55,5 +55,5 @@ ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
line-length = 88
select = ["E", "F", "I", "U", "N", "RUF"]
ignore = ["E501", "E402"]
select = ["E", "F", "I", "U", "N", "RUF", "ANN"]
ignore = ["E501", "E402", "ANN101", "ANN401"]