pickle.Pickler.reducer_override
: Positional parameter count mismatch; base method has 1, but override has 2
#13446
Labels
stubs: false positive
Type checkers report false errors
CPython docs explain about
Pickler.reduce_override
:https://docs.python.org/3/library/pickle.html#custom-reduction-for-types-functions-and-other-objects
And a code example is provided:
However, my code that does that now fails with pyright 1.1.393:
I think it's because of this definition in typeshed:
typeshed/stdlib/_pickle.pyi
Line 63 in c193cd2
The text was updated successfully, but these errors were encountered: