Skip to content

Commit

Permalink
remove None as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
codingfabi committed May 5, 2024
1 parent f3b4564 commit 2ec2e45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions co2calculator/energy/calculate_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@


def calc_co2_heating(
consumption: float,
options: Union[HeatingParameters, dict] = None,
consumption: float, options: Union[HeatingParameters, dict]
) -> Kilogram:
"""Function to compute heating emissions
Expand Down Expand Up @@ -53,7 +52,7 @@ def calc_co2_heating(


def calc_co2_electricity(
consumption: float, options: Union[ElectricityParameters, dict] = None
consumption: float, options: Union[ElectricityParameters, dict]
) -> Kilogram:
"""Function to compute electricity emissions
Expand Down

0 comments on commit 2ec2e45

Please sign in to comment.