Skip to content

Commit 16e049f

Browse files
committed
pyi?
1 parent 441e24a commit 16e049f

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

ctools.pyi

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
from datetime import datetime
2+
from typing import Any, Mapping, Iterable, Tuple
3+
4+
def jump_consistent_hash(key: int, num_bucket: int) -> int: pass
5+
6+
def strhash(s: str) -> int: ...
7+
8+
def int8_to_datetime(date_integer: int) -> datetime: ...
9+
10+
11+
class LFUCache:
12+
13+
def __init__(self, capacity: int) -> None: ...
14+
15+
def get(self, key, default=None) -> Any: ...
16+
17+
def pop(self, key, default=None) -> Any: ...
18+
19+
def setdefault(self, key, default=None) -> Any: ...
20+
21+
def update(self, map: Mapping, **kwargs) -> None: ...
22+
23+
def keys(self) -> Iterable: ...
24+
25+
def values(self) -> Iterable: ...
26+
27+
def items(self) -> Iterable[Tuple]: ...
28+
29+
def clear(self): ...
30+
31+
def __contains__(self, *args, **kwargs): # real signature unknown
32+
""" True if the dictionary has the specified key, else False. """
33+
pass
34+
35+
def __delitem__(self, *args, **kwargs): # real signature unknown
36+
""" Delete self[key]. """
37+
pass
38+
39+
def __eq__(self, *args, **kwargs): # real signature unknown
40+
""" Return self==value. """
41+
pass
42+
43+
def __getattribute__(self, *args, **kwargs): # real signature unknown
44+
""" Return getattr(self, name). """
45+
pass
46+
47+
def __getitem__(self, y): # real signature unknown; restored from __doc__
48+
""" x.__getitem__(y) <==> x[y] """
49+
pass
50+
51+
def __ge__(self, *args, **kwargs): # real signature unknown
52+
""" Return self>=value. """
53+
pass
54+
55+
def __gt__(self, *args, **kwargs): # real signature unknown
56+
""" Return self>value. """
57+
pass
58+
59+
def __iter__(self, *args, **kwargs): # real signature unknown
60+
""" Implement iter(self). """
61+
pass
62+
63+
def __len__(self, *args, **kwargs): # real signature unknown
64+
""" Return len(self). """
65+
pass
66+
67+
def __le__(self, *args, **kwargs): # real signature unknown
68+
""" Return self<=value. """
69+
pass
70+
71+
def __lt__(self, *args, **kwargs): # real signature unknown
72+
""" Return self<value. """
73+
pass
74+
75+
def evict(self) -> None: ...
76+
77+
def set_capacity(self, capacity: int) -> None: ...
78+
79+
def hints(self) -> (int, int, int): ...
80+
81+
def lfu(self) -> Any: ...
82+
83+
def lfu_of(self, key: Any) -> int: ...

0 commit comments

Comments
 (0)