diff --git a/stubs/atomicwrites/METADATA.toml b/stubs/atomicwrites/METADATA.toml deleted file mode 100644 index aa2589fbbbce..000000000000 --- a/stubs/atomicwrites/METADATA.toml +++ /dev/null @@ -1,5 +0,0 @@ -version = "1.4.*" -no_longer_updated = true - -[tool.stubtest] -ignore_missing_stub = false diff --git a/stubs/atomicwrites/atomicwrites/__init__.pyi b/stubs/atomicwrites/atomicwrites/__init__.pyi deleted file mode 100644 index 981f0b601418..000000000000 --- a/stubs/atomicwrites/atomicwrites/__init__.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from _typeshed import StrOrBytesPath -from collections.abc import Callable -from contextlib import AbstractContextManager -from typing import IO, Any, AnyStr -from typing_extensions import Literal - -PY2: Literal[False] -DEFAULT_MODE: Literal["w"] - -def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ... -def move_atomic(src: AnyStr, dst: AnyStr) -> None: ... - -class AtomicWriter: - def __init__(self, path: StrOrBytesPath, mode: str = ..., overwrite: bool = ...) -> None: ... - def open(self) -> AbstractContextManager[IO[Any]]: ... - def _open(self, get_fileobject: Callable[..., IO[AnyStr]]) -> AbstractContextManager[IO[AnyStr]]: ... - def get_fileobject( - self, suffix: str = ..., prefix: str = ..., dir: StrOrBytesPath | None = ..., **kwargs: Any - ) -> IO[Any]: ... - def sync(self, f: IO[Any]) -> None: ... - def commit(self, f: IO[Any]) -> None: ... - def rollback(self, f: IO[Any]) -> None: ... - -def atomic_write( - path: StrOrBytesPath, writer_cls: type[AtomicWriter] = ..., **cls_kwargs: object -) -> AbstractContextManager[IO[Any]]: ...