Kai (Kazuya Ito)
Kai (Kazuya Ito)
*Memo: - `mypy --strict test.py` - mypy 1.19.0 - Python 3.14.0 - Windows 11 [Invariance vs covariance](https://mypy.readthedocs.io/en/stable/common_issues.html#invariance-vs-covariance) says **_mypy considers all user-defined generic classes invariant by default_** as shown below:...
*Memo: - `mypy --strict test.py` - mypy 1.18.2 - Python 3.14.0 - Windows 11 [The doc](https://docs.python.org/3/library/typing.html#typing.TypeVar) says **'Must be exactly str or bytes'** about `*constraints` to make difference between `bound`...
*Memo: - `mypy test.py` - mypy 1.18.2 - Python 3.14.0 - Windows 11 Instantiating the object of the class with the wrong syntax setting constraint types to the 2nd and...