Files
typeshed/stdlib/2and3
Guido van Rossum a934d57f3b [optparse] Change Uses of List[] to Sequence[] in argument positions. (#1179)
* Change Uses of List[] to Sequence[] in argument positions.

One of these (parse_args()) broke in real-world code, because the
expected type was List[Union[str, bytes]] but the actual type was
List[str] (because List is invariant).  That is ridiculous, so I
changed the accepted type to Sequence[_Text] which is covariant.  Then
I found a few other methods/functions that probably should also be
changed to Sequence, but I'm less certain of those.  I'm not at all
sure about the instance/class attributes, so I left those alone
(though I suspect those might also have to switch).

* Fixes suggested by code review

- Changed Sequence[Option] to Iterable[Option] everywhere
- Changed _process_args to plain List
2017-04-21 12:22:24 -07:00
..
2017-04-13 20:14:35 -07:00
2017-04-04 20:14:07 -07:00
2016-12-20 00:16:44 -08:00
2016-12-20 09:07:15 -08:00
2016-12-19 23:53:19 -08:00
2017-04-05 13:54:05 -07:00
2016-08-05 07:55:43 -07:00
2016-07-29 08:02:24 -07:00
2016-12-19 22:09:35 -08:00
2017-03-14 08:22:05 -07:00
2016-08-05 12:03:21 -07:00
2016-12-29 10:17:40 -08:00
2016-12-21 01:06:52 -08:00
2016-12-20 00:47:51 -08:00
2016-12-19 23:53:19 -08:00
2016-12-21 01:06:52 -08:00
2017-03-19 13:05:07 -07:00
2017-03-19 13:08:54 -07:00
2016-08-05 12:04:01 -07:00
2016-08-10 13:39:38 -07:00
2016-07-22 07:38:17 -07:00
2017-03-23 08:23:06 -07:00
2017-04-07 18:01:33 -07:00
2017-04-03 09:37:20 -07:00
2017-03-23 08:24:24 -07:00
2017-03-20 20:00:52 -07:00
2017-03-23 08:23:52 -07:00
2017-03-23 08:25:38 -07:00
2016-12-19 22:09:35 -08:00
2017-03-23 08:25:56 -07:00
2017-03-21 05:54:48 -07:00
2016-12-21 01:06:52 -08:00
2017-03-19 17:35:31 -07:00
2017-03-20 21:11:30 -07:00
2017-04-09 18:15:58 -07:00
2016-12-21 01:06:52 -08:00
2017-03-20 20:53:44 -07:00
2017-03-20 20:32:44 -07:00
2016-12-21 01:06:52 -08:00
2016-12-19 21:52:56 -08:00
2017-04-04 20:13:23 -07:00