You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
It could be argued this is the job of e.g. isort, however - pep585-upgrade already tries to be nice in terms of imports - e.g. in a larger import set - this new import line gets added nearby other import from same package and not at the end (which would be simplest I guess)
The text was updated successfully, but these errors were encountered:
PRs are welcome, but I would indeed argue that this is out of scope for the package. Better to pair it with isort and call it a day in my opinion.
Pyupgrade also supports upgrading some of these type hints now (didn't when I wrote this), so I'd consider this package more useful as sort of a codemod for entire projects, to do one-time upgrades.
For an input file like this:
when applying pep585 hook I get:
while I expect:
It could be argued this is the job of e.g.
isort
, however -pep585-upgrade
already tries to be nice in terms of imports - e.g. in a larger import set - this new import line gets added nearby other import from same package and not at the end (which would be simplest I guess)The text was updated successfully, but these errors were encountered: