Skip to content

Commit 65c5d7a

Browse files
Merge pull request #440 from Blueprints-org/436-feature-request-add-docstring-to-unclear-aliases
Add docstrings to type alias
2 parents 70ff5b6 + f1cc885 commit 65c5d7a

File tree

1 file changed

+55
-7
lines changed

1 file changed

+55
-7
lines changed

blueprints/type_alias.py

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,81 +2,129 @@
22

33
# <editor-fold desc="DISTANCES">
44
MM = float
5+
"""Millimeters (mm), represented as a float."""
56
CM = float
7+
"""Centimeters (cm), represented as a float."""
68
M = float
9+
"""Meters (m), represented as a float."""
710
KM = float
11+
"""Kilometers (km), represented as a float."""
812
# </editor-fold>
913

1014
# <editor-fold desc="ROTATIONS">
1115
DEG = float
16+
"""Degrees (deg), represented as a float."""
1217
RAD = float
18+
"""Radians (rad), represented as a float."""
1319
# </editor-fold>
1420

1521
# <editor-fold desc="WEIGHTS">
16-
KG = float
1722
G = float
23+
"""Grams (g), represented as a float."""
24+
KG = float
25+
"""Kilograms (kg), represented as a float."""
1826
KG_M3 = float
27+
"""Kilograms per cubic meter (kg/m³), represented as a float."""
1928
KG_M = float
29+
"""Kilograms per meter (kg/m), represented as a float."""
2030
# </editor-fold>
2131

2232
# <editor-fold desc="FORCES">
2333
N = float
34+
"""Newtons (N), represented as a float."""
2435
KN = float
36+
"""Kilonewtons (kN), value represented as a float."""
2537
KN_M = float
38+
"""Kilonewtons per meter (kN/m), represented as a float."""
2639
# </editor-fold>
2740

2841
# <editor-fold desc="MOMENTS">
2942
NM = float
43+
"""Newton-meters (Nm), represented as a float."""
3044
KNM = float
45+
"""Kilonewton-meters (kNm), represented as a float."""
3146
# </editor-fold>
3247

3348
# <editor-fold desc="STRESSES">
34-
MPA = float
3549
KPA = float
50+
"""Kilopascals (KPa), represented as a float."""
51+
MPA = float
52+
"""Megapascals (MPa), represented as a float."""
3653
GPA = float
54+
"""Gigapascals (GPa), represented as a float."""
3755
# </editor-fold>
3856

3957
# <editor-fold desc="AREAS">
4058
MM2 = float
59+
"""Square millimeters (mm²), represented as a float."""
4160
MM2_M = float
61+
"""Square millimeters per meter, (mm²/m), represented as a float."""
4262
CM2 = float
63+
"""Square centimeters (cm²), represented as a float."""
4364
DM2 = float
65+
"""Square decimeters (dm²), represented as a float."""
4466
M2 = float
67+
"""Square meters (m²), represented as a float."""
4568
KM2 = float
69+
"""Square kilometers (km²), represented as a float."""
4670
# </editor-fold>
4771

4872
# <editor-fold desc="VOLUMES">
4973
MM3 = float
74+
"""Cubic millimeters (mm³), represented as a float."""
5075
CM3 = float
76+
"""Cubic centimeters (cm³), represented as a float."""
5177
M3 = float
78+
"""Cubic meters (m³), represented as a float."""
5279
M3_M = float
80+
"""Cubic meters per meter (m³/m), represented as a float."""
5381
# </editor-fold>
5482

5583
# <editor-fold desc="BI-QUADRATIC">
5684
MM4 = float
85+
"""Millimeters to the fourth power (mm⁴), represented as a float."""
5786
CM4 = float
87+
"""Centimeters to the fourth power (cm⁴), represented as a float."""
5888
M4 = float
89+
"""Meters to the fourth power (m⁴), represented as a float."""
5990
# </editor-fold>
6091

6192
# <editor-fold desc="COMPOUNDS">
6293
N_M2 = float
94+
"""Newton per square meter (N/m²), represented as a float."""
6395
KN_M2 = float
96+
"""Kilonewton per square meter (kN/m²), represented as a float."""
6497
# </editor-fold>
6598

6699
# <editor-fold desc="TIME">
67-
HOURS = float
68-
MINUTES = float
69100
SECONDS = float
101+
"""Seconds (sec), represented as a float."""
102+
MINUTES = float
103+
"""Minutes (min), represented as a float."""
104+
HOURS = float
105+
"""Hours (h), represented as a float."""
70106
DAYS = float
107+
"""Days (days), represented as a float."""
71108
WEEKS = float
109+
"""Weeks (weeks), represented as a float."""
72110
MONTHS = float
111+
"""Months (months), represented as a float."""
73112
YEARS = float
113+
"""Years (years), represented as a float."""
74114
# </editor-fold>
75115

76-
# <editor-fold desc="Ratio's">
77-
RATIO = float
116+
# <editor-fold desc="Percentages">
78117
PERCENTAGE = float
79-
DIMENSIONLESS = float
118+
"""Percentage (%), represented as a float."""
80119
PER_MILLE = float
120+
"""Per mille (‰), represented as a float."""
121+
# </editor-fold>
122+
123+
# <editor-fold desc="Ratio's">
124+
RATIO = float
125+
"""Ratio, represented as a float."""
81126
PER_DEGREE = float
127+
"""Per degree (1/°), represented as a float."""
128+
DIMENSIONLESS = float
129+
"""Dimensionless, represented as a float."""
82130
# </editor-fold>

0 commit comments

Comments
 (0)