mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
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`.