Removed outdated mypy exceptions in CONTRIBUTING (#8668)

Closes #8667
This commit is contained in:
Samuel T
2022-09-02 03:09:35 -04:00
committed by GitHub
parent bf3b1f0c4d
commit bcb8384e2f

View File

@@ -427,8 +427,7 @@ checker, and leave out unnecessary detail:
Some further tips for good type hints:
* use built-in generics (`list`, `dict`, `tuple`, `set`), instead
of importing them from `typing`, **except** in type aliases, in base classes, and for
arbitrary length tuples (`Tuple[int, ...]`);
of importing them from `typing`.
* use `X | Y` instead of `Union[X, Y]` and `X | None`, instead of
`Optional[X]`, **except** when it is not possible due to mypy bugs (type aliases and base classes);
* in Python 3 stubs, import collections (`Mapping`, `Iterable`, etc.)