[BUG] inlined with ':' for linters and type checkers #187
Labels
bug
Something isn't working
changelog
Changes should be written to the changelog file
needs test
Should be tested
Describe the bug A clear and concise description of what the bug is.
pycln
throws an UnsupportedCase if there's any:
in the import statement. But thereare cases where we want to provide a comment to a linters or type checkers, like so:
import numpy # type: ignore
.To Reproduce Steps to reproduce the behavior:
Take this code snippet:
Run this Pycln command:
Error traceback or unexpected output (if present):
UnsupportedCase: an import statement inlined with ':'. ⛔
Unexpected fixed code (if present):
Expected behavior:
Description: A clear and concise description of what you expected to happen.
It would be helpful if using colon for after
#
is allowed.Expected output (if present):
Expected fixed code (if present):
Environment (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: