Skip to content

Commit 510499b

Browse files
christianbundydependabot[bot]intgrsobolevn
authored
Upgrade to Mypy 1.4.0 (#1572)
* Bump mypy from 1.3.0 to 1.4.0 Bumps [mypy](https://github.com/python/mypy) from 1.3.0 to 1.4.0. - [Commits](python/mypy@v1.3.0...v1.4.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Configure `mypy.ini` to be more specific * Revert `extras_require` change * Update mypy.ini --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marti Raudsepp <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
1 parent efc6d20 commit 510499b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ disallow_untyped_defs = true
1515
disallow_incomplete_defs = true
1616
show_error_codes = false
1717
disable_error_code = empty-body
18+
# TODO: update our output assertions to match a new syntax
19+
force_uppercase_builtins = true
20+
force_union_syntax = true
1821

1922

2023
plugins =

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Django==4.2.2
88
-e .[compatible-mypy]
99

1010
# Overrides:
11-
mypy==1.3.0
11+
mypy==1.4.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def find_stub_files(name: str) -> List[str]:
3232
]
3333

3434
extras_require = {
35-
"compatible-mypy": ["mypy>=1.3.0,<1.4"],
35+
"compatible-mypy": ["mypy>=1.3.0,<1.5"],
3636
}
3737

3838
setup(

0 commit comments

Comments
 (0)