e.g.
fromtypingimportoverloadclassA:
@overloaddeff(self, x: str) ->str: ...
@overloaddeff(self, y: int) ->int: ...
classB(A):
@overloaddeff(self, x: str) ->str: ...
@overloaddeff(self, y: int) ->int: ...
@overloaddeff(self, z: bytes) ->bytes: ...
IMO in this case, it should still be compatible, since B supports A's full API, just with another extra function.
e.g.
IMO in this case, it should still be compatible, since
BsupportsA's full API, just with another extra function.