mypy泛型子类导致不兼容的类型我在玩弄用类型暗示实现幺半群。为此我写了: M = TypeVar('M') class Monoid(Generic[M]): ... def append(self, m: 'M ...2024-04-27 已阅读: n次