You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
release and install a separate stub package for each version of the library
I believe it's too complex, as one needs to maintain lots of separate branches for specific versions of the supported package. And versioning of the stubs package would then be PACKAGE_VERSION.STUBS_VERSION_INCREMENT?
The text was updated successfully, but these errors were encountered:
For
django-stubs
, we would like to be able to load stubs conditionally, like it's done for typeshed via https://mypy.readthedocs.io/en/latest/common_issues.html#python-version-and-system-platform-checksSee typeddjango/django-stubs#262
I'd like to propose to add a special function
is_package_installed
for stub files:which will evaluate according to the rules specified in PEP440 https://www.python.org/dev/peps/pep-0440/#version-specifiers
It was discussed in python/typeshed#153, current workaround seems to be (from python/typeshed#153 (comment)):
I believe it's too complex, as one needs to maintain lots of separate branches for specific versions of the supported package. And versioning of the stubs package would then be
PACKAGE_VERSION.STUBS_VERSION_INCREMENT
?The text was updated successfully, but these errors were encountered: