Skip to content

Commit c96884f

Browse files
hugovkAlexWaygoodJelleZijlstra
authored
Simplify config; avoid overly specific type
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 772a28e commit c96884f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[tool.mypy]
22
python_version = "3.12"
33
pretty = true
4-
disallow_any_generics = true
4+
strict = true
5+
follow_imports = "silent"
6+
7+
# Extra checks that aren't included in --strict
58
enable_error_code = "ignore-without-code"
69
extra_checks = true
7-
follow_imports = "silent"
8-
strict = true
9-
warn_redundant_casts = true
1010
warn_unreachable = true
11-
warn_unused_ignores = true
1211
exclude = [
1312
"^add-to-pydotorg.py$",
1413
"^buildbotapi.py$",

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def chdir_to_repo_root() -> str:
162162

163163
def test_first_line(
164164
filename: str,
165-
test: Callable[[str], re.Match[str] | None] | Callable[[object], bool],
165+
test: Callable[[str], object],
166166
) -> bool:
167167
if not os.path.exists(filename):
168168
return False

0 commit comments

Comments
 (0)