mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
This works towards fixing #924. To make the changes easier to review, I'm planning to fix the issue in two steps: - This commit makes the 3 stubs compatible with py2 - The next PR will move the 3 stubs to 2and3 and remove the 2 stubs I wrote this code by diffing the files in third_party/{2,3}/requests and making appropriate changes to the Python 3 stubs (mostly str/Text stuff). I verified that the 3 stubs now pass mypy when parsed as 2.7, but I don't have an annotated requests-using codebase to test on.