Skip to content

Commit 3ffd8cc

Browse files
Peter Konradin-takumasa
authored andcommitted
Dimensionality type stub
1 parent 1f65bb8 commit 3ffd8cc

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

quantities/dimensionality.pyi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
class Dimensionality(dict):
2+
@property
3+
def ndims(self) -> int:
4+
...
5+
6+
@property
7+
def simplified(self) -> Dimensionality:
8+
...
9+
10+
@property
11+
def string(self) -> str:
12+
...
13+
14+
@property
15+
def unicode(self) -> str:
16+
...
17+
18+
@property
19+
def latex(self) -> str:
20+
...
21+
22+
@property
23+
def html(self) -> str:
24+
...
25+
26+
def __hash__(self) -> int:
27+
...
28+
29+
def __add__(self, other: Dimensionality) -> Dimensionality:
30+
...
31+
32+
def __iadd__(self, other: Dimensionality) -> Dimensionality:
33+
...
34+
35+
def __sub__(self, other: Dimensionality) -> Dimensionality:
36+
...
37+
38+
def __isub__(self, other: Dimensionality) -> Dimensionality:
39+
...
40+
41+
def __mul__(self, other: Dimensionality) -> Dimensionality:
42+
...
43+
44+
def __imul__(self, other: Dimensionality) -> Dimensionality:
45+
...
46+
47+
def __truediv__(self, other: Dimensionality) -> Dimensionality:
48+
...
49+
50+
def __itruediv__(self, other: Dimensionality) -> Dimensionality:
51+
...
52+
53+
def __pow__(self, other : Dimensionality) -> Dimensionality:
54+
...
55+
56+
def __ipow__(self, other: Dimensionality) -> Dimensionality:
57+
...
58+
59+
def __repr__(self) -> str:
60+
...
61+
62+
def __str__(self) -> str:
63+
...
64+
65+
def __eq__(self, other: object) -> bool:
66+
...
67+
68+
def __ne__(self, other: object) -> bool:
69+
...
70+
71+
def __gt__(self, other: Dimensionality) -> bool:
72+
...
73+
74+
def __ge__(self, other: Dimensionality) -> bool:
75+
...
76+
77+
def __lt__(self, other: Dimensionality) -> bool:
78+
...
79+
80+
def __le__(self, other: Dimensionality)-> bool:
81+
...
82+
83+
def copy(self) -> Dimensionality:
84+
...

0 commit comments

Comments
 (0)