Skip to content

Commit 31ba87d

Browse files
committed
[units] fix duplicated definisions
* quantities.units.puressure.barad * quantities.units.volume.milliliter
1 parent 0e3f10a commit 31ba87d

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

quantities/units/pressure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
kip/inch**2,
102102
symbol='ksi'
103103
)
104-
barye = barie = barad = barad = barrie = baryd = UnitQuantity(
104+
barye = barie = barad = barrie = baryd = UnitQuantity(
105105
'barye',
106106
0.1*N/m**2,
107107
symbol='Ba',

quantities/units/pressure.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ kip_per_square_inch: UnitQuantity
3535
barye: UnitQuantity
3636
barie: UnitQuantity
3737
barad: UnitQuantity
38-
barad: UnitQuantity
3938
barrie: UnitQuantity
4039
baryd: UnitQuantity
4140
mmHg: UnitQuantity

quantities/units/volume.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
symbol='GL',
3636
aliases=['Gl', 'gigaliters', 'gigalitre', 'gigalitres']
3737
)
38-
cc = cubic_centimeter = milliliter = UnitQuantity(
38+
cc = cubic_centimeter = UnitQuantity(
3939
'cubic_centimeter',
4040
cm**3,
4141
symbol='cc',
@@ -203,4 +203,4 @@
203203
barrel/4
204204
)
205205

206-
del UnitQuantity, cm, m
206+
del UnitQuantity, cm, m, foot, inch, acre

quantities/units/volume.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ gigaliter: UnitQuantity
1818
gigalitre: UnitQuantity
1919
cc: UnitQuantity
2020
cubic_centimeter: UnitQuantity
21-
milliliter: UnitQuantity
2221
stere: UnitQuantity
2322
gross_register_ton: UnitQuantity
2423
register_ton: UnitQuantity

0 commit comments

Comments
 (0)