mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-20 08:38:27 +08:00
Bump mypy 0.950 (#939)
* Bump mypy to 0.95x * Remove the * for inferred types There was an upstream change (https://github.com/python/mypy/pull/12459) to remove * from inferred types in the reveal_type output. As we are asserting the * to exist, all the test cases are now failing on the 0.950 release. Removing the expected * to mirror the upstream behaviour change should resolve the test failures.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
from django.test.client import RequestFactory, AsyncRequestFactory
|
||||
factory = RequestFactory()
|
||||
request = factory.get('foo')
|
||||
reveal_type(request) # N: Revealed type is "django.core.handlers.wsgi.WSGIRequest*"
|
||||
reveal_type(request) # N: Revealed type is "django.core.handlers.wsgi.WSGIRequest"
|
||||
|
||||
async_factory = AsyncRequestFactory()
|
||||
async_request = async_factory.get('foo')
|
||||
reveal_type(async_request) # N: Revealed type is "django.core.handlers.asgi.ASGIRequest*"
|
||||
reveal_type(async_request) # N: Revealed type is "django.core.handlers.asgi.ASGIRequest"
|
||||
|
||||
Reference in New Issue
Block a user