Skip to content

Commit

Permalink
[Fix] More MyPy Suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Feb 8, 2025
1 parent 9a9246c commit 9a3240d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
self.state['CargoCapacity'] = entry.get('CargoCapacity')
self.state['MaxJumpRange'] = entry.get('MaxJumpRange')
self.state['FuelCapacity'] = {}
self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main']
self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve']
self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main'] # type: ignore
self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve'] # type: ignore
self.state['Rebuy'] = entry.get('Rebuy')
# Remove spurious differences between initial Loadout event and subsequent
self.state['Modules'] = {}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_changelog() -> tuple[str, str]:
def build_html(md_changelog: str, version: str) -> str:
"""Convert markdown changelog to HTML."""
html_out = f"<h2>Release {version}</h2>\n"
html_out += mistune.html(md_changelog)
html_out += mistune.html(md_changelog) # type: ignore
html_out = re.sub(r"h1", "h2", html_out) + "\n<hr>"

with open("script_output/html_changelog.txt", "w", encoding="utf-8") as html_file:
Expand Down

0 comments on commit 9a3240d

Please sign in to comment.