mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 14:31:56 +08:00
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:
@@ -10,4 +10,4 @@ psycopg2-binary
|
|||||||
-e .
|
-e .
|
||||||
|
|
||||||
# Overrides:
|
# Overrides:
|
||||||
mypy==0.950
|
mypy==0.960
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -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",
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user