You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICN001 does not allow to import datetime by its nameΒ #29319
As I just posted here: #28604 (comment), you can actually override this with extend-aliases rather than redefining aliases, although I think the aliases approach is probably more of the intended route.
Agreed on updating the example, thanks for pointing that out!
Activity
Daverball commentedon Oct 13, 2026
This was added as a default convention via #28604
If you don't want it, then you need to manually define the import conventions you want to follow.
You can copy the example from
lint.flake8-import-conventions.aliasesinto your configuration and remove the entries you disagree with.Daverball commentedon Oct 13, 2026
Although it looks like the example no longer contains all the default values, even though the comment claims it, @ntBre we should probably fix that.
ntBre commentedon Oct 13, 2026
As I just posted here: #28604 (comment), you can actually override this with
extend-aliasesrather than redefiningaliases, although I think thealiasesapproach is probably more of the intended route.Agreed on updating the example, thanks for pointing that out!
[`flake8-import-conventions`] Update default and example `aliases` (#β¦