Skip to content

Commit 3a527e8

Browse files
pablogsalwarsaw
andauthored
Update peps/pep-0810.rst
Co-authored-by: Barry Warsaw <barry@python.org>
1 parent f7d9848 commit 3a527e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

peps/pep-0810.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ Lazy imports filter
571571

572572
This PEP adds the following new functions to manage the lazy imports filter:
573573

574-
* ``importlib.set_lazy_imports_filter(func)`` - Sets the filter function. The
574+
* ``importlib.set_lazy_imports_filter(func)`` - Sets the filter function. If `func=None` then the import filter is removed. The
575575
``func`` parameter must have the signature: ``func(importer: str, name: str,
576576
fromlist: tuple[str, ...] | None) -> bool``
577577

0 commit comments

Comments
 (0)