Skip to content

add stub for core/asgi.py from Django 3 #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

gregbaker
Copy link

When checking a Django 3 project, I get this error (with sufficient strictness):

$ mypy .
foo/asgi.py:12: error: No library stub file for module 'django.core.asgi'
foo/asgi.py:12: note: (Stub files are from https://github.com/python/typeshed)
Found 1 error in 1 file (checked 15 source files)

The PR creates a stub for that file, which is new in Django 3.

@gregbaker gregbaker marked this pull request as ready for review January 20, 2020 18:57
@sobolevn
Copy link
Member

Thanks! We are currently working on different version support in django-stubs. It would be an awesome addition!

@askoretskiy
Copy link

I there any way I could contribute here? I face the same error with new Django 3.0 project.

@palfrey
Copy link
Contributor

palfrey commented Aug 19, 2020

FYI I also needed a stub ASGIHandler to make this work

@palfrey
Copy link
Contributor

palfrey commented Apr 12, 2021

This appears to have been fixed in #527

@sobolevn sobolevn closed this Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants