Small fixes for Python 3.10 (#5044)

This is enough to get stubtest working (note that it's a little annoying
to install mypy currently since typed-ast seems to have broken again on
Python 3.10)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-02-20 18:44:36 -08:00
committed by GitHub
parent 79113be609
commit 38a1c344c9
2 changed files with 4 additions and 2 deletions

View File

@@ -331,4 +331,6 @@ if sys.version_info >= (3, 10):
class NoneType:
def __bool__(self) -> Literal[False]: ...
EllipsisType = ellipsis # noqa F811 from builtins
from builtins import _NotImplementedType
NotImplementedType = _NotImplementedType # noqa F811 from builtins