asottile / pyupgrade

A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.
MIT License
3.62k stars 183 forks source link

Feature request: replace `past.builtins.basestring` with `str` #965

Closed m-aciek closed 2 months ago

m-aciek commented 2 months ago

https://python-future.org/compatible_idioms.html#basestring

This could be hidden under a feature flag as in some rare cases could be not backwards-compatible. Would such a feature be accepted?

asottile commented 2 months ago

it's not 1:1