From 750bc3b14128f436569c3c5b7969c52473cdfbe6 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 12 Mar 2025 10:43:35 +0300 Subject: [PATCH 1/2] [aiofiles] `.name` on `NamedTempFile` is always a `str` --- stubs/aiofiles/aiofiles/threadpool/text.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/aiofiles/aiofiles/threadpool/text.pyi b/stubs/aiofiles/aiofiles/threadpool/text.pyi index 6003a0852c31..76c3d9a1d3b2 100644 --- a/stubs/aiofiles/aiofiles/threadpool/text.pyi +++ b/stubs/aiofiles/aiofiles/threadpool/text.pyi @@ -34,7 +34,7 @@ class _UnknownAsyncTextIO(AsyncBase[str]): @property def newlines(self) -> str | tuple[str, ...] | None: ... @property - def name(self) -> FileDescriptorOrPath: ... + def name(self) -> str: ... @property def mode(self) -> str: ... From 40ce4a5cec767e4ac01b4d337119fdcbd4e032b1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 07:46:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stubs/aiofiles/aiofiles/threadpool/text.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/stubs/aiofiles/aiofiles/threadpool/text.pyi b/stubs/aiofiles/aiofiles/threadpool/text.pyi index 76c3d9a1d3b2..43de0a6e515a 100644 --- a/stubs/aiofiles/aiofiles/threadpool/text.pyi +++ b/stubs/aiofiles/aiofiles/threadpool/text.pyi @@ -1,4 +1,3 @@ -from _typeshed import FileDescriptorOrPath from collections.abc import Iterable from typing import BinaryIO