Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False-positive for N811 for full-caps, but non-constant imports #11862

Open
L4rryFisherman opened this issue Jun 13, 2024 · 1 comment
Open
Labels
bug Something isn't working type-inference Requires more advanced type inference.

Comments

@L4rryFisherman
Copy link

The line:

from uuid import UUID as UUIDType

flags as N811, whereas UUID is a class and not a constant.

Command used:

> ruff check
file.py:1:18: N811 Constant `UUID` imported as non-constant `UUIDType`

Ruff version: 0.4.8

@zawsq
Copy link

zawsq commented Jun 14, 2024

Ruff doesn't check type, it only check if it's caps.
Just mark it with noqa

@dhruvmanila dhruvmanila added bug Something isn't working type-inference Requires more advanced type inference. labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working type-inference Requires more advanced type inference.
Projects
None yet
Development

No branches or pull requests

3 participants