Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoppe-J committed Jan 10, 2025
1 parent fff3816 commit 644aa8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hisim/components/simple_heat_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ def fluid_props(self):
def write_to_report(self) -> List[str]:
"""Writes relevant data to report."""
lines = []
lines.append(f"Name: {self.config.name })")
lines.append(f"Source: {self.config.const_source})")
lines.append(f"Name: {self.config.name }")
lines.append(f"Source: {self.config.const_source}")
if self.config.const_source == SimpleHeatSourceType.CONSTANT_THERMAL_POWER:
lines.append(f"Power: {self.config.power_th_in_watt * 1e-3:4.0f} kW")
if self.config.const_source == SimpleHeatSourceType.CONSTANT_TEMPERATURE:
Expand Down
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ ignore_missing_imports = True
[mypy-urllib.*]
ignore_missing_imports = True
[mypy-datetime.*]
ignore_missing_imports = True
[mypy-pygfunction.*]
ignore_missing_imports = True
2 changes: 2 additions & 0 deletions mypy_moderate.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ ignore_missing_imports = True
[mypy-urllib.*]
ignore_missing_imports = True
[mypy-datetime.*]
ignore_missing_imports = True
[mypy-pygfunction.*]
ignore_missing_imports = True

0 comments on commit 644aa8d

Please sign in to comment.