Skip to content

usort incorrectly treats flatten_dict as a 1st party import #245

@sknaumov

Description

@sknaumov

Hello. I have a pylint warning after applying usort formatting:

C0411: third party import "from flatten_dict import flatten, unflatten" should be placed before "import common as cmn" (wrong-import-order)

Unfortunately, usort treats flatten_dict as a first-party dependency.

Also I've noticed that usort always separates system imports from others with an empty line, but for some reason doesn't enforce an empty line between 3rd party and 1st party imports - which seems to be an inconsistency.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions