Consider removing `six`, `past`, and `future` support
Offen
@sobolevn arbeitet bereits daran.
Seit 31.8.2022.
deferred
feature
topic-python2
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Since python2 is now no longer supported, I think it might be a good time to remove special casing of these libraries.
Why?
- None of them are required for python3+ code
- All their features are now (long) supported by python3+
- Their support is clearly a hack
- Code to support them is quite complex: https://github.com/python/mypy/blob/840a310f0b6c4a4bd7edfb141c8d1731ba4dd027/mypy/semanal.py#L1971-L2018
- There are multiple places where
six./ etc special cases are used:mypy/stubgen.py,mypy/semanal.py,mypyc/irbuild/for_helpers.py
I don't see much benefit in keeping them.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.