sbdchd / django-types

:doughnut: Type stubs for Django
MIT License
188 stars 62 forks source link

Issue 111: use literal from typings instead of from typing_extensions #112

Closed dbushy727 closed 1 year ago

dbushy727 commented 2 years ago

This addresses Issue #111

I didn't see any CONTRIBUTING guidelines so apologies if this isn't up to snuff. I'm kinda new to Python coming from PHP so still getting a hang of the ecosystem.

This essentially fixes the typing for fields so we the IDE can infer that the field is in fact nullable and can take None as a value.

sbdchd commented 2 years ago

I think the issue might be related to the python version being too old / mypy being too old for it to know about Literal in typing