Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 966c0a4

Browse filesBrowse files
committed
Avoid AttributeError by presenting the return type with a string.
1 parent f08ec1c commit 966c0a4
Copy full SHA for 966c0a4

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎importlib_resources/_py3.py

Copy file name to clipboardExpand all lines: importlib_resources/_py3.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def files(package: Package) -> trees.Traversable:
140140

141141
def path(
142142
package: Package, resource: Resource,
143-
) -> typing.ContextManager[Path]:
143+
) -> 'typing.ContextManager[Path]':
144144
"""A context manager providing a file path object to the resource.
145145
146146
If the resource does not already exist on its own on the file system,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.