Skip to content

Commit 260d6a5

Browse files
authored
Update pep-0810.rst
1 parent cdcf5dd commit 260d6a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

peps/pep-0810.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,9 @@ 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. If `func=None` then the import filter is removed. The
575-
``func`` parameter must have the signature: ``func(importer: str, name: str,
576-
fromlist: tuple[str, ...] | None) -> bool``
574+
* ``importlib.set_lazy_imports_filter(func)`` - Sets the filter function. If
575+
``func=None`` then the import filter is removed. The ``func`` parameter must
576+
have the signature: ``func(importer: str, name: str, fromlist: tuple[str, ...] | None) -> bool``
577577

578578
* ``importlib.get_lazy_imports_filter()`` - Returns the currently installed
579579
filter function, or ``None`` if no filter is set.

0 commit comments

Comments
 (0)