mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add Python 3 modules, and more Python 2 modules.
Also, sort names alphabetically and add module docstrings.
This commit is contained in:
25
python3/_heapq.py
Normal file
25
python3/_heapq.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""Stub file for the '_heapq' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more percise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
def heapify(*args, **kwargs) -> NoneType:
|
||||
raise TypeError()
|
||||
|
||||
def heappop(*args, **kwargs) -> object:
|
||||
raise TypeError()
|
||||
raise IndexError()
|
||||
|
||||
def heappush(*args, **kwargs) -> NoneType:
|
||||
raise TypeError()
|
||||
|
||||
def heappushpop(*args, **kwargs) -> object:
|
||||
raise TypeError()
|
||||
|
||||
def heapreplace(*args, **kwargs) -> object:
|
||||
raise TypeError()
|
||||
raise IndexError()
|
||||
|
||||
def nlargest(a: int, b) -> List[object]: pass
|
||||
|
||||
def nsmallest(a: int, b) -> List[object]: pass
|
||||
Reference in New Issue
Block a user