Skip to content

Improve lazy imports syntax errors #150459

@sobolevn

Description

@sobolevn

Feature or enhancement

Currently there are several cases that can be improved when there are syntax errors in the code.

The most important one in my opinion is from os lazy import path.
This is the problem many people have shared with me already. It is an easy-to-catch one.

Currently it does not have any specific error message.

Next, these two are optional, but in my opinion are also quite helpful: lazy os (missing import) and lazy os import path (missing from).

Image

I will send a PR :)

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions