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
2019-10-01 05:31:34 -07:00
2020-03-04 17:02:14 +00:00
2020-05-23 22:11:19 +02:00
2020-05-27 09:39:26 +02:00
2020-05-27 19:24:25 -07:00
2019-05-13 19:32:24 +02:00
2019-10-13 21:51:43 +02:00
2019-06-20 20:39:49 -07:00
2019-10-13 21:51:43 +02:00
2019-10-04 14:53:48 -07:00
2019-10-01 05:31:34 -07:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-10-13 21:51:43 +02:00
2019-10-13 21:51:43 +02:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-10-13 16:22:03 -07:00
2020-05-27 17:15:08 +02:00
2019-10-01 05:31:34 -07:00
2019-05-13 19:32:24 +02:00
2016-10-26 16:24:49 -07:00
2019-11-25 20:18:17 -08:00
2019-08-19 15:34:29 +02:00
2019-10-01 05:31:34 -07:00
2017-11-12 22:44:51 -08:00
2019-10-01 05:31:34 -07:00
2019-10-01 05:31:34 -07:00
2019-10-01 05:31:34 -07:00
2019-06-08 07:06:14 -07:00
2019-10-29 19:52:05 -07:00
2019-04-13 10:40:52 +02:00
2018-07-02 20:23:29 -07:00
2018-03-17 22:22:25 -07:00
2018-03-05 12:42:29 -08:00
2017-09-19 15:19:40 -07:00
2020-01-08 17:25:36 -08:00
2017-02-22 20:15:35 -08:00
2019-12-20 17:18:05 -08:00
2016-10-26 16:24:49 -07:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2016-10-26 16:24:49 -07:00
2019-04-13 10:40:52 +02:00
2019-05-16 11:28:49 +02:00
2019-04-13 10:40:52 +02:00
2019-10-28 06:59:28 -07:00
2019-10-13 21:51:43 +02:00
2019-07-31 15:45:50 +02:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-11-20 10:29:05 +00:00
2018-02-22 09:05:06 -08:00
2020-03-13 20:48:42 -07:00
2019-04-13 10:40:52 +02:00
2020-02-09 13:34:41 +01:00
2019-10-01 05:31:34 -07:00
2018-07-21 23:37:21 -07:00
2019-10-28 06:59:28 -07:00
2019-04-13 10:40:52 +02:00
2019-10-01 05:31:34 -07:00
2017-04-30 14:16:30 -07:00
2020-05-27 09:39:26 +02:00
2016-10-26 16:24:49 -07:00
2019-04-13 10:40:52 +02:00
2019-10-01 05:31:34 -07:00
2020-01-10 22:42:29 +01:00
2019-10-01 05:31:34 -07:00
2019-12-04 13:07:24 -08:00
2019-10-28 06:59:28 -07:00
2019-10-01 05:31:34 -07:00
2019-10-20 10:37:33 +02:00
2019-04-13 10:40:52 +02:00
2016-10-26 16:24:49 -07:00
2019-04-13 10:40:52 +02:00
2019-10-01 05:31:34 -07:00
2019-10-28 06:59:28 -07:00
2019-10-01 05:31:34 -07:00
2019-10-18 23:13:38 +02:00
2019-10-13 21:51:43 +02:00
2019-10-01 05:31:34 -07:00
2019-04-13 10:40:52 +02:00
2020-05-27 19:34:35 +02:00
2019-10-20 10:37:33 +02:00
2019-04-13 10:40:52 +02:00
2019-10-01 05:31:34 -07:00
2019-10-28 06:59:28 -07:00
2019-10-13 21:51:43 +02:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2019-10-13 21:51:43 +02:00
2020-05-13 10:18:25 -07:00
2019-04-13 10:40:52 +02:00
2020-01-29 11:25:35 +01:00
2019-10-01 05:31:34 -07:00
2018-10-24 07:20:53 -07:00
2019-10-13 21:51:43 +02:00
2019-10-13 16:22:03 -07:00
2019-04-13 10:40:52 +02:00
2019-10-01 05:31:34 -07:00
2020-05-05 13:55:31 +01:00
2020-01-09 13:04:08 -08:00
2019-04-13 10:40:52 +02:00
2019-10-22 19:10:50 +02:00
2020-05-27 19:52:14 -07:00
2018-11-23 09:51:44 -08:00
2019-10-07 17:05:19 +02:00
2019-10-07 17:05:19 +02:00
2019-10-09 10:27:18 -07:00
2017-10-06 19:04:18 -07:00
2019-10-01 05:31:34 -07:00