Skip to content

Commit f99a386

Browse files
committed
Update mypy to 1.18.1
1 parent 9f6cf53 commit f99a386

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

mypy.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
###
1111
# General settings
1212
###
13+
fixed_format_cache = true
1314
show_column_numbers = true
1415
strict = true
16+
strict_equality_for_none = true
1517
report_deprecated_as_note = true
1618
follow_untyped_imports = true
19+
allow_redefinition_new = true
20+
local_partial_types = true
1721

1822
# All below are rules and codes not enabled by default even with strict=true
1923
; <removed section from upstream>
@@ -34,13 +38,10 @@ disallow_incomplete_defs = false
3438
# Specific to this project
3539
###
3640

37-
; exclude mypyc build
38-
exclude = .*(build)/.*
41+
; exclude mypyc build and PyInstaller dist
42+
exclude = .*(build|dist)/.*
3943

4044
mypy_path = $MYPY_CONFIG_FILE_DIR/typings
41-
implicit_reexport = true
42-
allow_redefinition_new = true
43-
local_partial_types = true
4445

4546
; Auto-generated code, not much we can do there
4647
[mypy-gen.*]

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dev = [
5252
#
5353
# Linters & Formatters
5454
"dprint-py>=0.50.0.0",
55-
"mypy[faster-cache] >=1.16",
55+
"mypy[faster-cache] >=1.18",
5656
"pyright[nodejs] >=1.1.400", # reportPrivateImportUsage behaviour change
5757
"ruff >=0.13.0",
5858
#
@@ -128,8 +128,11 @@ exclude = [
128128
".git/", # Avoid accidentally scanning branch names ending in .py
129129
".venv*/",
130130
".venv/",
131-
# Auto generated, fails some strict pyright checks
131+
# mypyc build folder
132132
"build/",
133+
# PyInstaller dist folder
134+
"dist/",
135+
# Auto generated, fails some strict pyright checks
133136
"src/gen/",
134137
]
135138
# Ignore must be specified for Pylance to stop displaying errors

uv.lock

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)