remove unnecessary duplicate import
This commit is contained in:
parent
39d021da46
commit
d3428354d2
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from collections import defaultdict
|
|
||||||
import collections
|
import collections
|
||||||
import sys
|
import sys
|
||||||
from typing import Dict, List, Any, Optional, Self, Set
|
from typing import Dict, List, Any, Optional, Self, Set
|
||||||
|
@ -279,7 +278,7 @@ class Ingredient(Element):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def convert(self, amount: float, unitfrom: Unit, unitto: Unit) -> Optional[float]:
|
def convert(self, amount: float, unitfrom: Unit, unitto: Unit) -> Optional[float]:
|
||||||
conversions: Dict[str, Dict[str, float]] = defaultdict(dict)
|
conversions: Dict[str, Dict[str, float]] = collections.defaultdict(dict)
|
||||||
# construct node tree
|
# construct node tree
|
||||||
convs = self.conversions
|
convs = self.conversions
|
||||||
for unit in self.ctx.units.units:
|
for unit in self.ctx.units.units:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue