Skip to content

Commit

Permalink
Add type hints for technology sets
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey committed Dec 3, 2024
1 parent 8ed0523 commit 5993c55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions message_ix_models/tests/tools/costs/test_decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
),
)
def test_get_module_scenarios_reduction(
module: Literal["energy", "materials", "cooling"], t_exp
module: Literal["energy", "materials", "cooling"], t_exp: set[str]
) -> None:
tech_map = energy_map = get_raw_technology_mapping("energy")

Expand Down Expand Up @@ -57,7 +57,7 @@ def test_get_module_scenarios_reduction(
),
)
def test_get_module_cost_reduction(
module: Literal["energy", "materials", "cooling"], t_exp
module: Literal["energy", "materials", "cooling"], t_exp: set[str]
) -> None:
tech_map = energy_map = get_raw_technology_mapping("energy")

Expand Down Expand Up @@ -111,7 +111,9 @@ def test_get_technology_reduction_scenarios_data(
),
)
def test_project_ref_region_inv_costs_using_reduction_rates(
module: Literal["energy", "materials", "cooling"], t_exp, t_excluded
module: Literal["energy", "materials", "cooling"],
t_exp: set[str],
t_excluded: set[str],
) -> None:
# Set up
config = Config(module=module)
Expand Down

0 comments on commit 5993c55

Please sign in to comment.