Skip to content

Commit 2351051

Browse files
Upgrade mypy support to 0.960 (#973)
- Updates test_model_field_classes_from_existing_locations to account for the behaviour change in python/mypy#12663 - Bumps the version of django-stubs for a new release
1 parent 4a90ad9 commit 2351051

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ psycopg2-binary
1010
-e .
1111

1212
# Overrides:
13-
mypy==0.950
13+
mypy==0.960

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def find_stub_files(name: str) -> List[str]:
2020
readme = f.read()
2121

2222
dependencies = [
23-
"mypy>=0.930,<0.960",
23+
"mypy>=0.930,<0.970",
2424
"django",
2525
"django-stubs-ext>=0.4.0",
2626
"tomli",
@@ -32,7 +32,7 @@ def find_stub_files(name: str) -> List[str]:
3232

3333
setup(
3434
name="django-stubs",
35-
version="1.11.0",
35+
version="1.11.1",
3636
description="Mypy stubs for Django",
3737
long_description=readme,
3838
long_description_content_type="text/markdown",

tests/typecheck/fields/test_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
booking = Booking()
2828
reveal_type(booking.id) # N: Revealed type is "builtins.int"
2929
reveal_type(booking.time_range) # N: Revealed type is "Any"
30-
reveal_type(booking.some_decimal) # N: Revealed type is "decimal.Decimal"
30+
reveal_type(booking.some_decimal) # N: Revealed type is "_decimal.Decimal"
3131
installed_apps:
3232
- myapp
3333
files:

0 commit comments

Comments
 (0)