jonyscathe
jonyscathe
Yep - had already added that to my flake8 config. But thought it worth raising an issue anyway as I'm sure I'm not the only one using flake8-type-checking and flake8-pyi
Hmmmm. On the flake8-pyi page (https://github.com/PyCQA/flake8-pyi) Under Y044's description it states: `from __future__ import annotations has no effect in stub files, as forward references in stubs are enabled by default.`...
I've now opened up a documentation query on flake8-pyi as I think their documentation is just incorrect on why future annotatiosn aren't needed in stubs.
Ok, flake8-pyi guys referenced https://typing.readthedocs.io/en/latest/source/stubs.html#syntax which does state: Stubs are treated as if from __future__ import annotations is enabled. In particular, built-in generics, pipe union syntax (X | Y), and...
Sorry for the slow responses! Yes, I think disabling the plugin for `pyi` files probably does make sense. As you say, stubs aren't evaluated at runtime so it does make...
Ok. So first thing... With `flake8==5.0.4` and `flake8-type-checking==2.1.2` I don't have any issues with TC100 coming up in stub files.... Took me a while to realise that I was on...
Also, flake8-bugbear adds those codes to extend-ignore so unless they are re-enabled by adding them to extend-select, anyone using flake8-blind-except and flake8-bugbear has the flake8-blind-except codes turned off and might...
Thanks for the quick reply. If I enable that flag as you suggest then my Q003 error goes away, but I am now getting erroneous Q000 errors on f-strings that...
Is there any chance of this (or something like it) happening? With the `session.execute(statement)` being the preferred ORM method going forward with SQLAlchemy 2.0 and `session.query()` being marked as legacy...
Already realised a slight issue. The: ``` execute_mocked_data = next(iter(filter(lambda i: i[0] == [execute_call], _mock_data)), None) ``` Actually needs to be ``` execute_mocked_data = next(iter(filter(lambda i: i[0] == [ExpressionMatcher(execute_call)], _mock_data)),...