forked from bschnurr/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscale.pyi
More file actions
172 lines (143 loc) · 4.87 KB
/
Copy pathscale.pyi
File metadata and controls
172 lines (143 loc) · 4.87 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
from typing import Any, Callable, Literal, Sequence
from ._typing import *
from .transforms import Transform
from .axis import Axis
class ScaleBase:
def __init__(self, axis: Axis) -> None: ...
def get_transform(self) -> Transform: ...
def set_default_locators_and_formatters(self, axis: Axis): ...
def limit_range_for_scale(self, vmin: float, vmax: float, minpos: float): ...
class LinearScale(ScaleBase):
name = ...
def __init__(self, axis: Axis) -> None: ...
def set_default_locators_and_formatters(self, axis: Axis): ...
def get_transform(self) -> Transform: ...
class FuncTransform(Transform):
input_dims = ...
def __init__(self, forward: Callable, inverse: Callable) -> None: ...
def transform_non_affine(self, values: ArrayLike) -> list: ...
def inverted(self): ...
class FuncScale(ScaleBase):
name = ...
def __init__(self, axis: Axis, functions: Sequence[Callable]) -> None: ...
def get_transform(self) -> FuncTransform: ...
def set_default_locators_and_formatters(self, axis): ...
class LogTransform(Transform):
input_dims = ...
def __init__(self, base, nonpositive: Literal["clip", "mask"] = "clip") -> None: ...
def __str__(self) -> str: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class InvertedLogTransform(Transform):
input_dims = ...
def __init__(self, base) -> None: ...
def __str__(self) -> str: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class LogScale(ScaleBase):
name = ...
def __init__(
self,
axis: Axis,
*,
base: float = 10,
subs=Sequence[int],
nonpositive: Literal["clip", "mask"] = "clip"
) -> None: ...
base = ...
def set_default_locators_and_formatters(self, axis: Axis): ...
def get_transform(self) -> LogTransform: ...
def limit_range_for_scale(self, vmin: float, vmax: float, minpos: float): ...
class FuncScaleLog(LogScale):
name = ...
def __init__(
self, axis: Axis, functions: Sequence[Callable], base: float = 10
) -> None: ...
@property
def base(self): ...
def get_transform(self) -> Transform: ...
class SymmetricalLogTransform(Transform):
input_dims = ...
def __init__(self, base, linthresh, linscale) -> None: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class InvertedSymmetricalLogTransform(Transform):
input_dims = ...
def __init__(self, base, linthresh, linscale) -> None: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class SymmetricalLogScale(ScaleBase):
name = ...
def __init__(
self,
axis: Axis,
*,
base: float = 10,
linthresh: float = 2,
subs: Sequence[int] = ...,
linscale: float = ...
) -> None: ...
base = ...
linthresh = ...
linscale = ...
def set_default_locators_and_formatters(self, axis: Axis): ...
def get_transform(self) -> SymmetricalLogTransform: ...
class AsinhTransform(Transform):
input_dims = ...
def __init__(self, linear_width) -> None: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class InvertedAsinhTransform(Transform):
input_dims = ...
def __init__(self, linear_width) -> None: ...
def transform_non_affine(self, a) -> list: ...
def inverted(self): ...
class AsinhScale(ScaleBase):
name = ...
auto_tick_multipliers = ...
def __init__(
self,
axis: Axis,
*,
linear_width: float = 1,
base: float = 10,
subs: Sequence[int] = ...,
**kwargs
) -> None: ...
linear_width = ...
def get_transform(self): ...
def set_default_locators_and_formatters(self, axis): ...
class LogitTransform(Transform):
input_dims = ...
def __init__(self, nonpositive: Literal["mask", "clip"] = ...) -> None: ...
def transform_non_affine(self, a): ...
def inverted(self): ...
def __str__(self) -> str: ...
class LogisticTransform(Transform):
input_dims = ...
def __init__(self, nonpositive: Literal["mask", "clip"] = ...) -> None: ...
def transform_non_affine(self, a): ...
def inverted(self): ...
def __str__(self) -> str: ...
class LogitScale(ScaleBase):
name = ...
def __init__(
self,
axis: Axis,
nonpositive: Literal["mask", "clip"] = ...,
*,
one_half: str = ...,
use_overline=...
) -> None: ...
def get_transform(self) -> LogitTransform: ...
def set_default_locators_and_formatters(self, axis: Axis): ...
def limit_range_for_scale(self, vmin: float, vmax: float, minpos: float): ...
def get_scale_names(): ...
def scale_factory(
scale: Literal[
"asinh", "function", "functionlog", "linear", "log", "logit", "symlog"
],
axis: Axis,
**kwargs
): ...
def register_scale(scale_class): ...