Skip to content

Commit

Permalink
Improve type checking 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Apr 3, 2024
1 parent ea76cf3 commit f18512f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions newa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@ class Recipe(Cloneable, Serializable):
class RecipeConfig(Cloneable, Serializable):
""" A job recipe configuration """

fixtures: dict[str, dict] = field(factory=dict)
dimensions: dict[str, dict] = field(factory=dict)
fixtures: dict[str, dict[str, Any]] = field(factory=dict)
dimensions: dict[str, dict[str, Any]] = field(factory=dict)

def build_requests(self) -> list:
def build_requests(self) -> list[Request]:

# this is here to generate unique recipe IDs
recipe_id_gen = itertools.count(start=1)
Expand All @@ -360,7 +360,7 @@ def build_requests(self) -> list:
for i in range(len(combinations)):
combinations[i] = (self.fixtures,) + (combinations[i])

def merge_combination_data(combination):
def merge_combination_data(combination: list[dict[str, Any]]) -> dict[str, Any]:
merged = {}
for record in combination:
for key in record:
Expand Down

0 comments on commit f18512f

Please sign in to comment.