Skip to content

Commit a189e29

Browse files
committed
Fix regression in pkgutil.get_importer
1 parent dde456e commit a189e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/pkgutil.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if sys.version_info < (3, 12):
3838

3939
@deprecated("Use importlib.util.find_spec() instead. Will be removed in Python 3.14.")
4040
def find_loader(fullname: str) -> LoaderProtocol | None: ...
41-
def get_importer(path_item: str) -> MetaPathFinderProtocol | PathEntryFinderProtocol | None: ...
41+
def get_importer(path_item: str) -> PathEntryFinderProtocol | None: ...
4242
@deprecated("Use importlib.util.find_spec() instead. Will be removed in Python 3.14.")
4343
def get_loader(module_or_name: str) -> LoaderProtocol | None: ...
4444
def iter_importers(fullname: str = "") -> Iterator[MetaPathFinderProtocol | PathEntryFinderProtocol]: ...

0 commit comments

Comments
 (0)