Skip to content

add new errors for lazy imports - #864

Merged
asottile merged 1 commit into
mainfrom
eager-lazy
Sep 1, 2026
Merged

add new errors for lazy imports#864
asottile merged 1 commit into
mainfrom
eager-lazy

Conversation

@asottile

@asottile asottile commented Sep 1, 2026

Copy link
Copy Markdown
Member
  • error if a lazy import is eagerly used at the module scope
  • error for lazy from ... import *
  • (no new code needed) error for lazy from __future__ import ...
  • error for lazy import not at module scope

@asottile
asottile merged commit d539458 into main Sep 1, 2026
10 checks passed
@asottile
asottile deleted the eager-lazy branch September 1, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant