Skip to content

Commit 0b4410a

Browse files
sobolevndonbarbos
andauthored
Apply suggestions from code review
Co-authored-by: Semyon Moroz <[email protected]>
1 parent b421475 commit 0b4410a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/importlib/resources/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ else:
6565
def path(package: Package, resource: Resource) -> AbstractContextManager[Path, Literal[False]]: ...
6666
def is_resource(package: Package, name: str) -> bool: ...
6767
if sys.version_info >= (3, 11):
68-
@deprecated("Deprecated since Python 3.11, use `files(anchor).iterdir()`")
68+
@deprecated("Deprecated since Python 3.11. Use `files(anchor).iterdir()`.")
6969
def contents(package: Package) -> Iterator[str]: ...
7070
else:
7171
def contents(package: Package) -> Iterator[str]: ...

stdlib/importlib/resources/_functional.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ if sys.version_info >= (3, 13):
2727
def read_text(anchor: Anchor, *path_names: StrPath, encoding: str | None, errors: str | None = "strict") -> str: ...
2828
def path(anchor: Anchor, *path_names: StrPath) -> AbstractContextManager[Path, Literal[False]]: ...
2929
def is_resource(anchor: Anchor, *path_names: StrPath) -> bool: ...
30-
@deprecated("Deprecated since Python 3.11, use `files(anchor).iterdir()`")
30+
@deprecated("Deprecated since Python 3.11. Use `files(anchor).iterdir()`.")
3131
def contents(anchor: Anchor, *path_names: StrPath) -> Iterator[str]: ...

0 commit comments

Comments
 (0)