Vincent Barbaresi
e61f1783fb
add undocumented _heapify_max to heapq stubs ( #4708 )
...
Closes #3926
_heapify_max() existed in Python2 already and hasn't changed in python3 (checked in 3.9)
2020-10-25 12:11:59 -07:00
Jelle Zijlstra
5d553c9584
apply black and isort ( #4287 )
...
* apply black and isort
* move some type ignores
2020-06-28 13:31:00 -07:00
Sebastian Rittau
de26a3d109
Remove raise statements from function bodies ( #3355 )
...
While it may eventually be useful to mark the exceptions that can be
raised from a function or method, the semantics are currently undefined
and unclear.
2019-10-13 21:51:43 +02:00
Yannack
40215d1fa3
Fix the definition of nsmallest() in stdlib/2 and 2and3/heapq.pyi ( #3114 )
...
Missing support of the optional "key" kwarg in nsmallest.
Also fixed nlargest syntax for 2and3 which was also missing.
Use a protocol for heapq.py
2019-07-18 21:38:28 +02:00
rchen152
1dfa570cae
Fix the definition of nlargest() in stdlib/2/heapq.pyi ( #1601 )
...
* Fix nlargest() in stdlib/2/heapq.pyi
* Fix nlargest() syntax
* key can be None in heapq.nlargest
2017-09-12 08:27:41 -07:00
Guido van Rossum
cb97bb54c0
Move 2.7 to 2 ( #635 )
...
Closes #579 .
2016-10-26 16:24:49 -07:00