Skip to content

Commit 256f342

Browse files
authored
Add --local-partial-types and --strict-bytes to mypy (psf#4583)
1 parent 00cb6d1 commit 256f342

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.pre-commit-config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ repos:
3939
exclude: ^src/blib2to3/
4040

4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v1.14.1
42+
rev: v1.15.0
4343
hooks:
4444
- id: mypy
4545
exclude: ^(docs/conf.py|scripts/generate_schema.py)$
4646
args: []
4747
additional_dependencies: &mypy_deps
4848
- types-PyYAML
49+
- types-atheris
4950
- tomli >= 0.2.6, < 2.0.0
5051
- click >= 8.1.0, != 8.1.4, != 8.1.5
5152
- packaging >= 22.0

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ branch = true
224224
python_version = "3.9"
225225
mypy_path = "src"
226226
strict = true
227+
strict_bytes = true
228+
local_partial_types = true
227229
# Unreachable blocks have been an issue when compiling mypyc, let's try to avoid 'em in the first place.
228230
warn_unreachable = true
229231
implicit_reexport = true

scripts/fuzz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_idempotent_any_syntatically_valid_python(
8080
try:
8181
import sys
8282

83-
import atheris # type: ignore[import-not-found]
83+
import atheris
8484
except ImportError:
8585
pass
8686
else:

0 commit comments

Comments
 (0)