mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
I'm preparing a PR to mypy that further formalizes and improves the rules for which functions are "compatible" with each other, both for subtyping and for assignment. This is the one place in the stubs that violates the new rules but not the old: the supertype `Serializer` can take an optional positional argument called `serializer` to `load_payload`, but until this diff the mixin used to implement it could not, but rather could only take `serializer` as a named argument, through its **kwargs.