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

@@ -1,7 +1,7 @@
import collections
import collections.abc
from typing import Any, Dict, Iterator, Optional, Tuple
class Shelf(collections.MutableMapping[Any, Any]):
class Shelf(collections.abc.MutableMapping[Any, Any]):
def __init__(
self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...
) -> None: ...