sbdchd / django-types

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

Add py.typed files to django and psycopg2 stubs folders - pylance #135

Closed rafsaf closed 1 year ago

rafsaf commented 1 year ago

fix https://github.com/sbdchd/django-types/issues/129

vscode pylance needs explicite py.typed files to prefer stubs package more over bundled stubs, see https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202153-19-may-2021

note, since yesterday this is somewhat "fixed" because... this package is now used in pylance bundled stubs :D https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#2022940-26-september-2022-release but still it won't hurt to have it (they can change stubs at any time as they did now)

tested on pylance 2022.09.30