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

I251 doesn't pick up on attribute access #63

Open
adamchainz opened this issue Jul 4, 2017 · 1 comment
Open

I251 doesn't pick up on attribute access #63

adamchainz opened this issue Jul 4, 2017 · 1 comment

Comments

@adamchainz
Copy link
Owner

If you have banned-modules set to foo.bar = baz, this code doesn't trigger an error:

import foo

foo.bar

...when really it should.

@adamchainz adamchainz changed the title I201 doesn't pick up on attribute access I251 doesn't pick up on attribute access Jan 4, 2020
@adamantike
Copy link

We are migrating some projects to UUIDv7, and found this same limitation when trying to avoid using uuid.uuid4(). With the following configuration, the error isn't triggered:

[flake8]
banned-modules =
  uuid.uuid4 = Use UUIDv7 instead, with uuid6.uuid7().

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

No branches or pull requests

2 participants