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
{{ message }}
Repository navigation
stubtest: Recognize __ as indicating positional-only arg at runtime #15302
It also complains that error: typing_extensions.override is inconsistent, stub argument "__arg" differs from runtime argument "__arg", which is a rather enigmatic issue to resolve.
It also complains that error: typing_extensions.override is inconsistent, stub argument "__arg" differs from runtime argument "__arg", which is a rather enigmatic issue to resolve.
Activity
JelleZijlstra commentedon May 24, 2023
It also complains that
error: typing_extensions.override is inconsistent, stub argument "__arg" differs from runtime argument "__arg", which is a rather enigmatic issue to resolve.AlexWaygood commentedon May 24, 2023
That second issue is a duplicate of #14560
jorenham commentedon Mar 5, 2025
This issue is also affecting NumPy.
At runtime,
numpy.testing._private.utils.check_support_sve(also re-exported innumpy.testing) has the following signature:I tried annotating it in 3 ways; all of them resulted in a stubtest error. This forces us to put it in the allowist.
attempt 1: pos-only
cacheattempt 2: pos-only
__cacheattempt 3: pos-or-kw
__cachestubtest: better checking of runtime args with dunder names
stubtest: better checking of runtime args with dunder names (python#1…