Sondre Lillebø Gundersen
Sondre Lillebø Gundersen
It is possible to do this. We can add the `filename` attribute to our plugin class to receive filenames from flake8. I don't have time to implement the feature currently,...
Actually, perhaps this is an easy fix. Do you think this would be as easy as disabling TC100 for `.pyi` files @jonyscathe?
Would you mind providing a source documenting that forward references are enabled by default? Just so I can add it to the readme.
So it sounds to me like there's nothing wrong with having a futures import in a stubs file, except it would do nothing in practice. I'm happy to turn off...
@jonyscathe what do you think? Would disabling the plugin for all `pyi` files make sense?
I think the implementation is simpler this way, and I can't think of a reason not to, so think I'll go with that and add a note in the readme...
After considering this for a bit, I think the original idea of muting TC100 is slightly better. It seems unlikely, but TC101 ("Annotation does not need to be a string...
Haha, as long as the branch works I'm happy 😄 Thanks!
Nice, this is something we should be able to add handling for I reckon :+1: I might have time to get this added in a few weeks, and in the...
I started to think about how to implement this, and unfortunately I think this can get quite complex. For the easy scenario, when a file has a single type-checking block...