mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
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:
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user