Skip to content

Commit dcccf59

Browse files
committed
mypy --strict
1 parent d16c083 commit dcccf59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

telnetlib3/fingerprinting_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def _build_seen_counts(
770770
return ""
771771

772772

773-
def _color_match(term: "blessed.Terminal", name: str, score: float) -> str:
773+
def _color_match(term: Optional["blessed.Terminal"], name: str, score: float) -> str:
774774
"""
775775
Color a nearest-match result by confidence threshold.
776776
@@ -790,7 +790,7 @@ def _color_match(term: "blessed.Terminal", name: str, score: float) -> str:
790790
def _nearest_match_lines(
791791
data: Dict[str, Any],
792792
names: Dict[str, str],
793-
term: "blessed.Terminal",
793+
term: Optional["blessed.Terminal"],
794794
telnet_unknown: bool = False,
795795
terminal_unknown: bool = False,
796796
) -> List[str]:

0 commit comments

Comments
 (0)