Sondre Lillebø Gundersen
Sondre Lillebø Gundersen
Take this example: ```python if T.TYPE_CHECKING: from a import Compiler def foo(): if T.TYPE_CHECKING: from b import Compiler else: Compiler = object bar: Compiler return bar ``` The plugin doesn't...
This is intentional, since [F401](https://www.flake8rules.com/rules/F401.html) which comes built-into flake8 already flags unused imports. Do you have a use case where F401 is not flagged, and we still don't flag anything?
Huh yeah that's strange. @Goldziher know what we're missing here?
yep, looks like ```diff from collections.abc import Callable from typing import Any, cast from pendulum.datetime import DateTime from .foo import Foo a = cast('Callable[..., Any]', {}) - b = cast('DateTime',...
I suppose we should try to parse string values as well, and still raise TC errors when something's present. If that's not possible, I think we'll need to revert to...
After looking at this for a bit, the problem is harder than just noting down the string value of every cast and crosschecking imports against it. In the example string...
I don't love any of these solutions. In some ways I prefer flagging unused imports since a false positive seems better than a false negative. The only downside is there's...
Would it be possible to handle the error by `continue`ing? [This](https://github.com/Qovery/Replibyte/blob/main/dump-parser/src/utils.rs#L74) is the relevant line, note the fixme. I can submit a PR if you could confirm @evoxmusic - I'm...
+1 The graphql-relay dependency is preventing me from installing [schemathesis](https://github.com/schemathesis/schemathesis) in my project. When running ``` python3 -m venv venv source venv/bin/activate pip install graphene pip install schemathesis ``` I...
What does your workflow looks like? That's unfortunate.