Skip to content

Commit cdcf5dd

Browse files
authored
Update pep-0810.rst
1 parent 3a527e8 commit cdcf5dd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

peps/pep-0810.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,10 @@ This PEP adds the following new functions to manage the lazy imports filter:
586586
The filter function is called for every potentially lazy import, and must
587587
return ``True`` if the import should be lazy. This allows for fine-grained
588588
control over which imports should be lazy, useful for excluding modules with
589-
known side-effect dependencies or registration patterns.
589+
known side-effect dependencies or registration patterns. The filter function
590+
is called at the point of execution of the lazy import or lazy from import
591+
statement, not at the point of reification. The filter function may be
592+
called concurrently.
590593

591594
The filter mechanism serves as a foundation that tools, debuggers, linters,
592595
and other ecosystem utilities can leverage to provide better lazy import

0 commit comments

Comments
 (0)