mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
Remove Python 2 support from atomicwrites (#7712)
This commit is contained in:
@@ -1,2 +1 @@
|
||||
version = "1.4.*"
|
||||
python2 = true
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing import IO, Any, AnyStr, Callable, ContextManager, Text
|
||||
from collections.abc import Callable
|
||||
from typing import IO, Any, AnyStr, ContextManager
|
||||
|
||||
def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
|
||||
class AtomicWriter(object):
|
||||
def __init__(self, path: StrOrBytesPath, mode: Text = ..., overwrite: bool = ...) -> None: ...
|
||||
class AtomicWriter:
|
||||
def __init__(self, path: StrOrBytesPath, mode: str = ..., overwrite: bool = ...) -> None: ...
|
||||
def open(self) -> ContextManager[IO[Any]]: ...
|
||||
def _open(self, get_fileobject: Callable[..., IO[AnyStr]]) -> ContextManager[IO[AnyStr]]: ...
|
||||
def get_fileobject(self, dir: StrOrBytesPath | None = ..., **kwargs: Any) -> IO[Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user