Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mellea/helpers/event_loop_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def __init__(self):
"""
self._event_loop = asyncio.new_event_loop()
self._thread: threading.Thread = threading.Thread(
target=self._event_loop.run_forever, daemon=True
target=self._event_loop.run_forever,
daemon=True, # type: ignore
)
self._thread.start()

Expand Down
12 changes: 6 additions & 6 deletions mellea/stdlib/reqlib/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def as_markdown_list(ctx: Context) -> list[str] | None:
raw_output = ctx.last_output()
assert raw_output is not None
try:
parsed = mistletoe.Document(raw_output.value)
for child in parsed.children:
parsed = mistletoe.Document(raw_output.value) # type: ignore
for child in parsed.children: # type: ignore
if type(child) is not mistletoe.block_token.List:
return None
for item in child.children:
for item in child.children: # type: ignore
xs.append(mistletoe.base_renderer.BaseRenderer().render(item))
return xs
except Exception:
Expand All @@ -44,10 +44,10 @@ def _md_table(ctx: Context):
raw_output = ctx.last_output()
assert raw_output is not None
try:
parsed = mistletoe.Document(raw_output.value)
if len(parsed.children) != 1:
parsed = mistletoe.Document(raw_output.value) # type: ignore
if len(parsed.children) != 1: # type: ignore
return False
return type(parsed.children[0]) is mistletoe.block_token.Table
return type(parsed.children[0]) is mistletoe.block_token.Table # type: ignore
except Exception:
return False

Expand Down
Loading
Loading