-
Notifications
You must be signed in to change notification settings - Fork 2
/
hexnumgen.pyi
54 lines (46 loc) · 1.4 KB
/
hexnumgen.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class Bounds:
q: int
r: int
s: int
def __init__(self, q: int, r: int, s: int) -> None: ...
@property
def largest_dimension(self) -> int: ...
@property
def quasi_area(self) -> int: ...
class GeneratedNumber:
@property
def direction(self) -> str: ...
@property
def pattern(self) -> str: ...
@property
def bounds(self) -> Bounds: ...
@property
def num_points(self) -> int: ...
@property
def num_segments(self) -> int: ...
class BeamOptions:
bounds: Bounds
carryover: int
def __init__(self, bounds: Bounds, carryover: int) -> None: ...
class BeamPoolOptions:
bounds: Bounds
carryover: int
num_threads: int
def __init__(self, bounds: Bounds, carryover: int, num_threads: int) -> None: ...
class BeamSplitOptions:
bounds: Bounds
carryover: int
num_threads: int
def __init__(self, bounds: Bounds, carryover: int, num_threads: int) -> None: ...
class AStarOptions:
def __init__(self) -> None: ...
class AStarSplitOptions:
num_threads: int
def __init__(self, num_threads: int) -> None: ...
Options = BeamOptions | BeamPoolOptions | BeamSplitOptions | AStarOptions | AStarSplitOptions
def generate_number_pattern(
target: int | tuple[int, int],
trim_larger: bool,
allow_fractions: bool,
options: Options,
) -> GeneratedNumber | None: ...