(Pdb) runtype.issubclass(typing.MutableMapping[str, int], typing.Mapping[str, int])
True
(Pdb) runtype.issubclass(typing.Mapping[str, int], typing.Mapping[str, int | str])
True
(Pdb) runtype.issubclass(typing.MutableMapping[str, int], typing.Mapping[str, int | str])
False
By transitivity of subtype relation, if the first two expressions hold, then the third must hold as well. But according to the library, the third expression is False.
Environment: Python 3.12, runtype version 0.5.3
By transitivity of subtype relation, if the first two expressions hold, then the third must hold as well. But according to the library, the third expression is False.
Environment: Python 3.12, runtype version 0.5.3