mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 16:48:27 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from typing import Union, IO, Optional, Type, NamedTuple, List, Tuple, Any, Text, overload
|
||||
from typing_extensions import Literal
|
||||
from types import TracebackType
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, List, NamedTuple, Optional, Text, Tuple, Type, Union, overload
|
||||
|
||||
from typing_extensions import Literal
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
@@ -20,8 +21,9 @@ class Aifc_read:
|
||||
def __init__(self, f: _File) -> None: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
def __enter__(self) -> Aifc_read: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
|
||||
) -> None: ...
|
||||
def initfp(self, file: IO[bytes]) -> None: ...
|
||||
def getfp(self) -> IO[bytes]: ...
|
||||
def rewind(self) -> None: ...
|
||||
@@ -44,8 +46,9 @@ class Aifc_write:
|
||||
def __del__(self) -> None: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
def __enter__(self) -> Aifc_write: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
|
||||
) -> None: ...
|
||||
def initfp(self, file: IO[bytes]) -> None: ...
|
||||
def aiff(self) -> None: ...
|
||||
def aifc(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user