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
error: setuptools._distutils.core.Distribution.announce is inconsistent, runtime argument "level" has a default value of 20, which is different from stub argument default 2
Stub: at line 106 in file /home/runner/work/typeshed/typeshed/stubs/setuptools/setuptools/_distutils/core.pyi
def (self: distutils.dist.Distribution, msg: Any, level: Any =)
Runtime: at line 960 in file /tmp/tmpdwtx47d7/lib/python3.10/site-packages/setuptools/_distutils/dist.py
def (self, msg, level=20)
Activity
AlexWaygood commentedon Feb 23, 2023
setuptools:
#9795 would fix it.
Or we could remove the default value here, and that would also fix it:
typeshed/stdlib/distutils/dist.pyi
Line 106 in 06755e1
Or we could change this line, so that we no longer pretend that setuptools's
Distributionclass is the same as the stdlib'sDistributionclass:typeshed/stubs/setuptools/setuptools/_distutils/core.pyi
Line 3 in 06755e1
Remove a default value in `distutils`
Remove a default value in `distutils` (#9800)