Skip to content

Commit 9a3240d

Browse files
committed
[Fix] More MyPy Suppression
1 parent 9a9246c commit 9a3240d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
688688
self.state['CargoCapacity'] = entry.get('CargoCapacity')
689689
self.state['MaxJumpRange'] = entry.get('MaxJumpRange')
690690
self.state['FuelCapacity'] = {}
691-
self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main']
692-
self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve']
691+
self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main'] # type: ignore
692+
self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve'] # type: ignore
693693
self.state['Rebuy'] = entry.get('Rebuy')
694694
# Remove spurious differences between initial Loadout event and subsequent
695695
self.state['Modules'] = {}

scripts/build_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_changelog() -> tuple[str, str]:
4242
def build_html(md_changelog: str, version: str) -> str:
4343
"""Convert markdown changelog to HTML."""
4444
html_out = f"<h2>Release {version}</h2>\n"
45-
html_out += mistune.html(md_changelog)
45+
html_out += mistune.html(md_changelog) # type: ignore
4646
html_out = re.sub(r"h1", "h2", html_out) + "\n<hr>"
4747

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

0 commit comments

Comments
 (0)