twisted / treq

Python requests like API built on top of Twisted's HTTP client.
Other
587 stars 140 forks source link

Type annotations, checked with MyPy #366

Closed twm closed 11 months ago

twm commented 1 year ago

There are tons of unions of concrete types in the APIs because treq does tons of isinstance() checks internally. It's pretty gross.

This targets Python 3.8 for MyPy to match what Twisted uses, so the 3.7 build is busted.

Fixes #302.

glyph commented 1 year ago

Also if you're feeling reciprocal I could really use some reviews on: