Commit Graph

9 Commits

Author SHA1 Message Date
Guido van Rossum 8a5fe7b15c PEP 585: Fix other occurrences of 'parametriz' 2020-02-24 20:21:22 -08:00
Ethan Smith 73b35bb7ff
PEP 483, 484, 585: Use parameterized instead of parametrized (#1318)
Google prefers "parameterize" and PEP 484 uses it in a majority of cases. So does the stdlib. So PEP 585 has to follow.
2020-02-24 20:18:17 -08:00
Łukasz Langa 5d778373ea
[pep-585] Disallow isinstance([1, 2], list[str]) (#1311) 2020-02-19 12:17:19 +01:00
Guido van Rossum 7f402aef96
PEP 585: updates green-lighted by Lukasz (#1289)
* Rename __parameters__ to __args__, for typing.py compatibility
* Genericize, re.{Pattern,Match} and io.IO
* list != list[int], but list[int] == list[int] (and list[str] != list[int])
* Add a lazy __parameters__ that contains the unique type vars in __args__ (also for typing.py compatibility)
* make dict[str][str] fail, but dict[T, str][int] return dict[int, str]
* expose proxy type as types.GenericAlias
* Link to implementation
* Explicitly state that pickling or copying should work
2020-02-06 17:37:46 +01:00
Łukasz Langa bd03d819a1
[pep-585] Address GvR's review comments 2019-09-20 17:46:18 +02:00
Łukasz Langa 0026ce3e9c
[pep-585] Minor wording improvements 2019-09-18 00:12:42 +02:00
Łukasz Langa ec6f1538c5
[pep-585] Focus the PEP on a single issue 2019-09-17 23:54:57 +02:00
Serhiy Storchaka ad7f2b2f6c Remove trailing spaces from many PEPs (#983) 2019-04-16 07:50:15 -07:00
Łukasz Langa c7881a5216
[pep-585] Type Hinting Usability Conventions (WIP) 2019-03-04 10:53:46 +01:00