File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -586,7 +586,10 @@ This PEP adds the following new functions to manage the lazy imports filter:
586586The filter function is called for every potentially lazy import, and must
587587return ``True `` if the import should be lazy. This allows for fine-grained
588588control 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
591594The filter mechanism serves as a foundation that tools, debuggers, linters,
592595and other ecosystem utilities can leverage to provide better lazy import
You can’t perform that action at this time.
0 commit comments