Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Serializer.load_payload overrides in subclasses have incompatible signatures #74
Mypy recently introduced stricter checks for function signature compatibility (python/mypy#2521). Since
class Serializer: def load_payload(self, payload, serializer=None): ...
class JSONWebSignatureSerializer(Serializer): def load_payload(self, payload, return_header=False): ...
class URLSafeSerializerMixin(object): def load_payload(self, payload): ... class URLSafeSerializer(URLSafeSerializerMixin, Serializer): ... class TimedSerializer(Serializer): ... class URLSafeTimedSerializer(URLSafeSerializerMixin, TimedSerializer): ...
Basically, it's invalid to replace