Skip to content

Commit

Permalink
Upgrade mypy support to 0.960
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
DamianZaremba committed May 25, 2022
1 parent 4a90ad9 commit 6b2a641
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ psycopg2-binary
-e .

# Overrides:
mypy==0.950
mypy==0.960
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def find_stub_files(name: str) -> List[str]:
readme = f.read()

dependencies = [
"mypy>=0.930,<0.960",
"mypy>=0.930,<0.970",
"django",
"django-stubs-ext>=0.4.0",
"tomli",
Expand All @@ -32,7 +32,7 @@ def find_stub_files(name: str) -> List[str]:

setup(
name="django-stubs",
version="1.11.0",
version="1.11.1",
description="Mypy stubs for Django",
long_description=readme,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion tests/typecheck/fields/test_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
booking = Booking()
reveal_type(booking.id) # N: Revealed type is "builtins.int"
reveal_type(booking.time_range) # N: Revealed type is "Any"
reveal_type(booking.some_decimal) # N: Revealed type is "decimal.Decimal"
reveal_type(booking.some_decimal) # N: Revealed type is "_decimal.Decimal"
installed_apps:
- myapp
files:
Expand Down

0 comments on commit 6b2a641

Please sign in to comment.