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
If a stub contains a local definition that should not be exported, it should be named with an underscore prefix so that from x import * does not import the definition.
For example, stubs/3.2/itertools.py defines these type variables:
T = typevar('T')
S = typevar('S')
It should be refactored like this:
_T = typevar('_T')
_S = typevar('_S')
(and all references to T and S should be fixed, of course)
No need to fix all of these in one go; this can be fixed gradually. The most important module is typing, since it would be nice to be able to use from typing import * without namespace pollution.
The text was updated successfully, but these errors were encountered:
If a stub contains a local definition that should not be exported, it should be named with an underscore prefix so that
from x import *
does not import the definition.For example,
stubs/3.2/itertools.py
defines these type variables:It should be refactored like this:
(and all references to
T
andS
should be fixed, of course)No need to fix all of these in one go; this can be fixed gradually. The most important module is
typing
, since it would be nice to be able to usefrom typing import *
without namespace pollution.The text was updated successfully, but these errors were encountered: