Avasam

Results 686 comments of Avasam

> What's the motivation here? The idea is to get more performant code, essentially "for free" (as in you don't have to think much about it, since it's autofixed). This...

`data_files` type issue should be solved by https://github.com/python/typeshed/pull/15146 (setuptools first-party equivalent: https://github.com/pypa/setuptools/pull/5021). Setting as draft until that's published.

This is something I've suggested on the formatter alpha/beta feedback as well, and probably my only reticence in using Black or Ruff as a formatter (still on autopep8 + add-trailing-comma...

Avoiding "half-wrapping" (like is requested for params in https://github.com/astral-sh/ruff/issues/9992) would also _help_ comprehension formatting. If the opening and closing brackets don't fit on the same line, then wrap per keyword.

I usually have a "soft line length" of 80 and a hard one of 100. So if I set a "percentage" for comprehensions (in my case 80% (100 * 0.8...

@kevind-kizen Are you ignoring repos already formatted by black and ruff? That'll obviously heavily skew the numbers towards the existing Ruff format.

> `@override` decorator is unavailable on older python version and some projects (like libraries) cannot use `typing_extension` as it is not stable additional dependency. Because of this, I do not...

I'm gonna leave this one for later. I won't have a choice but to tackle it to merge setuptools stubs from typeshed, but it doesn't affect pkg_resources which I'm focusing...

Looks like I'll have to handle a handful of the typeshed-related TODOs first. Because `distutils` imports become `Any` in Python 3.12, a handful of type-ignores become unused.

Hopefully I didn't forget to add anything to typeshed. Waiting for https://github.com/python/mypy/issues/17285