mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-24 18:48:52 +08:00
Add type hints to all test code (#1217)
* Add type hints to all test code * Fixes * Fix indentation * Review fixes
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
- case: async_client_methods
|
||||
main: |
|
||||
from django.test.client import AsyncClient
|
||||
async def main():
|
||||
async def main() -> None:
|
||||
client = AsyncClient()
|
||||
response = await client.get('foo')
|
||||
reveal_type(response.asgi_request) # N: Revealed type is "django.core.handlers.asgi.ASGIRequest"
|
||||
|
||||
Reference in New Issue
Block a user