amoffat / sh

Python process launching
https://sh.readthedocs.io/en/latest/
MIT License
6.98k stars 506 forks source link

drop use python<=3.7 syntax #718

Closed kloczek closed 7 months ago

kloczek commented 7 months ago

Despite what is mentioned in pyproject.toml that sh supports only python 3.8.x sh code still uses older syntax. Pass all code over pyupgrade --py38.

ecederstrand commented 7 months ago

Thanks for the contribution!

black tripped over a single line because it wants double quotes: _unicode_methods = set(dir(''))

If you push that change, then I'll merge.

kloczek commented 7 months ago

One sec I ned to check what failed 😋

kloczek commented 7 months ago

Thank you 😄