Files
typeshed/stdlib/2and3
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
..
2020-02-21 21:27:42 -08:00
2019-10-12 02:45:43 +02:00
2020-04-22 20:02:19 +02:00
2020-05-24 17:53:03 -07:00
2020-04-22 20:02:19 +02:00
2018-09-25 20:23:02 -07:00
2020-05-16 16:47:14 -07:00
2019-12-21 14:48:00 -08:00
2020-05-27 19:24:25 -07:00
2020-05-16 16:52:42 -07:00
2020-02-29 14:18:06 +01:00
2019-10-16 17:11:23 +02:00
2017-04-24 15:05:02 -07:00
2020-05-24 17:41:45 -07:00
2020-05-17 08:59:11 -07:00
2020-03-17 19:44:51 +01:00
2019-09-23 18:24:05 +02:00
2019-11-25 19:46:28 -08:00
2020-01-19 21:04:43 +01:00
2018-06-11 11:26:32 -07:00
2020-03-06 11:07:52 +01:00
2017-04-27 08:14:21 -07:00
2020-05-24 20:38:18 -07:00
2020-01-20 09:02:23 +01:00
2017-04-24 13:55:33 -07:00
2020-03-18 17:47:17 -07:00
2017-03-19 13:08:54 -07:00
2016-08-05 12:04:01 -07:00
2017-05-25 19:39:15 -07:00
2020-02-27 19:18:54 -08:00
2017-03-21 05:54:48 -07:00
2020-02-05 13:06:31 +01:00
2020-05-16 21:30:45 -07:00
2020-02-01 13:44:55 -08:00