Skip to content

Commit

Permalink
declare return types
Browse files Browse the repository at this point in the history
  • Loading branch information
mciethan committed Sep 12, 2023
1 parent 7d6a530 commit d86e6b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules-engine/src/rules_engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def initialize_billing_periods(

def calculate_avg_summer_usage(
self,
):
) -> None:
"""
Calculate average daily summer usage
"""
Expand All @@ -153,7 +153,7 @@ def calculate_avg_summer_usage(
else:
self.avg_summer_usage = 0

def calculate_boiler_usage(self, fuel_multiplier: float):
def calculate_boiler_usage(self, fuel_multiplier: float) -> float:
"""Calculate boiler usage with oil or propane
Args:
fuel_multiplier: a constant that's determined by the fuel type
Expand All @@ -162,7 +162,7 @@ def calculate_boiler_usage(self, fuel_multiplier: float):
# self.num_occupants: the number of occupants in Home
# self.water_heat_efficiency: a number indicating how efficient the heating system is

return 0
return 0 * fuel_multiplier

"""
your pseudocode looks correct provided there's outer logic that
Expand All @@ -176,7 +176,7 @@ def calculate_boiler_usage(self, fuel_multiplier: float):

def calculate_avg_non_heating_usage(
self,
):
) -> None:
"""Calculate avg non heating usage for this Home
Args:
#use_same_fuel_DHW_heating
Expand Down

0 comments on commit d86e6b4

Please sign in to comment.