mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-04-27 09:01:26 +08:00
97bd6e37b9
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`.