Instagram/Fixit

Add rule for fixing imports which use as with a no-op

Open

#171 opened on Jan 15, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (68 forks)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (711 stars)
PR merge metrics
 (PR metrics pending)

Description

For example:

from example.fixit_ex import ExampleClass as ExampleClass

Should be:

from example.fixit_ex import ExampleClass

Because using as with the same resulting name is a no-operation action.

Contributor guide