Skip to content

Commit 5551e46

Browse files
committed
correct type hints
1 parent 469379a commit 5551e46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

idom/client/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737
self._stopped = Event()
3838
if not show:
3939
# do nothing on display
40-
self.display = lambda *a, **kw: None
40+
self.display: Callable[[Optional[str], str], None] = lambda frm, txt: None
4141
elif display_function is not None:
4242
self.display = display_function
4343
else:

idom/widgets/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ def _is_url(string: str) -> bool:
126126
return True
127127
else:
128128
parsed = urlparse(string)
129-
return parsed.scheme and parsed.netloc
129+
return bool(parsed.scheme and parsed.netloc)

0 commit comments

Comments
 (0)