#autoflake — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #autoflake, aggregated by home.social.
-
Ran into a weird situation where #pyright would flag mundane #Python code as having typing errors. After much head scratching, figured out it only happens if you have a py.typed file in site-packages (and typing_extensions installed).
It turns out that #autoflake was installing such a py.typed file. That's fixed by v2.2.1, a quick release by @fsouza.
So if you ever get unexpected pyright errors for code that was OK before, look for a py.typed file in site-packages.