Skip to content

Commit ecc6cf0

Browse files
committed
chore(typing): enable more type checks
1 parent 6d7b898 commit ecc6cf0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pygitguardian/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class DetailSchema(BaseSchema):
138138
detail = fields.String(required=True)
139139

140140
@pre_load
141-
def rename_errors(self, data: Dict, many: bool, **kwargs: Any) -> Dict:
141+
def rename_errors(self, data: Dict[str, Any], many: bool, **kwargs: Any) -> Dict:
142142
error = data.pop("error", None)
143143
if error is not None:
144144
data["detail"] = str(error)

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ lines_after_imports = 2
88

99
[tool.pyright]
1010
include = ["pygitguardian"]
11+
reportIncompatibleMethodOverride = true
12+
reportMissingParameterType = true
13+
reportUnknownParameterType = true
14+
reportUnnecessaryTypeIgnoreComment = true
1115

1216
[tool.scriv]
1317
version = "literal: pygitguardian/__init__.py: __version__"

0 commit comments

Comments
 (0)