1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 07:20:02 +03:00

[Fix] More MyPy Suppression

This commit is contained in:
David Sangrey 2025-02-08 12:28:02 -05:00
parent 9a9246cec3
commit 9a3240d814
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
2 changed files with 3 additions and 3 deletions

View File

@ -688,8 +688,8 @@ class EDLogs(FileSystemEventHandler):
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'] = {}

View File

@ -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: