Commit Graph

6 Commits

Author SHA1 Message Date
Akuli
933787d5fe return Hashable from functools._make_key (#5385) 2021-05-09 20:23:40 +03:00
Mahmoud Harmouch
0804505c10 Add functools._make_key (#5370)
* Add functools._make_key

* Added _HashedSeq class
2021-05-08 23:40:33 +03:00
Sebastian Rittau
45916045c8 Upgrade black to 21.4b0 and reformat (#5250)
This introduces newlines before decorators.
2021-04-26 13:58:27 +02:00
Eric Traut
e2967a8bee Eliminated the use of "bare" TypeVars in stdlib stubs (#5041)
Eliminated the use of "bare" TypeVars (i.e. a TypeVar that appears only once) within generic methods. While not considered an error in PEP 484, these are a common source of bugs in code, and some type checkers (including pytype and pyright) flag them as errors.

Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-02-27 19:43:45 -08:00
Eric Traut
18a229da97 functools: add type argument to Type annotation (#4977)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-01-27 20:03:20 -08:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00