Upgrade mypy support to 0.960 (#973)

- Updates test_model_field_classes_from_existing_locations to account
  for the behaviour change in https://github.com/python/mypy/pull/12663
- Bumps the version of django-stubs for a new release
This commit is contained in:
Damian Zaremba
2022-05-25 23:20:44 +01:00
committed by GitHub
parent 4a90ad9edc
commit 2351051ef1
3 changed files with 4 additions and 4 deletions

View File

@@ -10,4 +10,4 @@ psycopg2-binary
-e . -e .
# Overrides: # Overrides:
mypy==0.950 mypy==0.960

View File

@@ -20,7 +20,7 @@ with open("README.md") as f:
readme = f.read() readme = f.read()
dependencies = [ dependencies = [
"mypy>=0.930,<0.960", "mypy>=0.930,<0.970",
"django", "django",
"django-stubs-ext>=0.4.0", "django-stubs-ext>=0.4.0",
"tomli", "tomli",
@@ -32,7 +32,7 @@ dependencies = [
setup( setup(
name="django-stubs", name="django-stubs",
version="1.11.0", version="1.11.1",
description="Mypy stubs for Django", description="Mypy stubs for Django",
long_description=readme, long_description=readme,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",

View File

@@ -27,7 +27,7 @@
booking = Booking() booking = Booking()
reveal_type(booking.id) # N: Revealed type is "builtins.int" reveal_type(booking.id) # N: Revealed type is "builtins.int"
reveal_type(booking.time_range) # N: Revealed type is "Any" 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: installed_apps:
- myapp - myapp
files: files: