4 Commits
Author SHA1 Message Date
Jukka Lehtosalo 97bd6e37b9 Update argparse to accept unicode in many contexts
Change `str` to `Union[str, unicode]` where it seems safe.
I didn't change it in non-covariant contexts since that can
break user code.

I manually verified a subset of the changes by calling the
relevant function with unicode literals (ascii-only).

I'm using `Union[str, unicode]` instead of just `unicode`
so that the stub still works with tools that don't promote
`str` objects to `unicode`.
2017-01-18 08:43:49 -08:00
Jukka Lehtosalo d09cc058a6 Add note about not using basestring in tempfile 2016-05-16 17:46:41 +01:00
Jukka Lehtosalo 89ed6e92d4 Add abc.abstractproperty (Python 3) 2016-02-04 15:38:42 +00:00
Jukka Lehtosalo 0d7b6ce135 Fix Python 3 six.moves
This was breaking mypy Travis build.
2016-01-08 15:25:50 +00:00