mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from typing import Any, Dict, Iterator, Optional, Tuple
|
||||
import collections
|
||||
|
||||
from typing import Any, Dict, Iterator, Optional, Tuple
|
||||
|
||||
class Shelf(collections.MutableMapping[Any, Any]):
|
||||
def __init__(self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...
|
||||
def __init__(
|
||||
self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...
|
||||
) -> None: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, key: Any) -> bool: ... # key should be str, but it would conflict with superclass's type signature
|
||||
@@ -18,7 +19,9 @@ class Shelf(collections.MutableMapping[Any, Any]):
|
||||
def sync(self) -> None: ...
|
||||
|
||||
class BsdDbShelf(Shelf):
|
||||
def __init__(self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...
|
||||
def __init__(
|
||||
self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...
|
||||
) -> None: ...
|
||||
def set_location(self, key: Any) -> Tuple[str, Any]: ...
|
||||
def next(self) -> Tuple[str, Any]: ...
|
||||
def previous(self) -> Tuple[str, Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user