From bcb8384e2fced13cba1fe49a462977a59d4ef7e9 Mon Sep 17 00:00:00 2001 From: Samuel T Date: Fri, 2 Sep 2022 03:09:35 -0400 Subject: [PATCH] Removed outdated mypy exceptions in CONTRIBUTING (#8668) Closes #8667 --- CONTRIBUTING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 327d99ea2..3e7bf1766 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.)