From 2351051ef1d79cf3d455f4636e5094b44a84d677 Mon Sep 17 00:00:00 2001 From: Damian Zaremba Date: Wed, 25 May 2022 23:20:44 +0100 Subject: [PATCH] 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 --- requirements.txt | 2 +- setup.py | 4 ++-- tests/typecheck/fields/test_base.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5187b1d..411fbf7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ psycopg2-binary -e . # Overrides: -mypy==0.950 +mypy==0.960 diff --git a/setup.py b/setup.py index 25d73a5..7ed868d 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ with open("README.md") as f: readme = f.read() dependencies = [ - "mypy>=0.930,<0.960", + "mypy>=0.930,<0.970", "django", "django-stubs-ext>=0.4.0", "tomli", @@ -32,7 +32,7 @@ dependencies = [ 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", diff --git a/tests/typecheck/fields/test_base.yml b/tests/typecheck/fields/test_base.yml index 7149162..783b869 100644 --- a/tests/typecheck/fields/test_base.yml +++ b/tests/typecheck/fields/test_base.yml @@ -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: