Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Improve "Precise typing of alternative constructors" example
See microsoft/pyright#4001. - TypeVar bounds that contain TypeVars are not well-specified and pyright disallows them - Similarly, TypeVars defined in classes raise weird scoping problems Let's keep the examples portable and avoid relying on mypy-specific features.
- Loading branch information