Remove Python 2 support from atomicwrites (#7712)

This commit is contained in:
Sebastian Rittau
2022-04-27 11:45:44 +02:00
committed by GitHub
parent 891d46cbb4
commit e916fb5f1e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,2 +1 @@
version = "1.4.*"
python2 = true

View File

@@ -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]: ...