Files
typeshed/stdlib/2
Brad Solomon ddb47deb27 Allow Union[unicode, str] rather than just str in several places (#3887)
* Allow unicode objects throughout urlparse.py

Functions such as `urlparse()`, if given a unicode object,
will happily return a ParseResult of unicode components.

Relatedly, functions like `unquote()` will accept any of
bytes/str/unicode and return an object of the same type
or a composite containing that type.

* Allow unicode in several places in Thread

`name` and `kwargs` to Thread.__init__ function perfectly
well with unicode, not just str.

Note: the .name attribute will always be str even
if the constructor is passed something else, since
__init__ calls:

    self.__name = str(name or _newname())

* Use typing.AnyStr properly

...rather than defining a new TypeVar unncessarily.

* Use typing.Text properly

Text is behaviorally equivalent to Union[str, unicode]
for Python 2 argument types.

* Remove outdated import & definition

* [check file consistent] copy changes to _dummy_threading.pyi
2020-05-27 19:52:14 -07:00
..
2016-10-26 16:24:49 -07:00
2020-05-27 17:15:08 +02:00
2016-10-26 16:24:49 -07:00
2019-10-29 19:52:05 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2019-11-20 10:29:05 +00:00
2017-04-30 14:16:30 -07:00
2016-10-26 16:24:49 -07:00
2019-12-04 13:07:24 -08:00
2016-10-26 16:24:49 -07:00
2018-10-24 07:20:53 -07:00
2018-11-23 09:51:44 -08:00