Commit Graph

7 Commits

Author SHA1 Message Date
Alex Waygood
8af5e0d340 Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949) 2022-01-18 07:14:03 -08:00
Oleg Höfling
ff63953188 Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-14 11:12:30 +02:00
Jukka Lehtosalo
b08a2e6dea Fix Python 2 genericpath.commonprefix (#5500)
The more specific overload item should come first. Also
fix the return type.
2021-05-19 12:56:18 +02:00
Sebastian Rittau
f0bf6eebbd AnyStr cleanup (#5487)
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.

Part of #5470
2021-05-17 20:45:48 +02:00
Akuli
15b0959cf8 stdlib/@python2: clean imports (#5453) 2021-05-15 01:08:37 +02:00
Akuli
5ec4f06263 clean python 3 specific stuff from stdlib/@python2 stubs (#5451) 2021-05-15 00:19:05 +02:00
Sebastian Rittau
5b739e0ccb Split stdlib into Python 2 and 3 versions (#5442)
All new files in stdlib/@python2 are straight copies of the
corresponding files in stdlib.
2021-05-14 12:04:12 -07:00