Add more type annotations

This commit is contained in:
Kovid Goyal
2021-10-27 13:44:12 +05:30
parent d090db380f
commit c899eb4ee3
4 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -630,7 +630,7 @@ class Tab: # {{{
for w in self:
yield w.as_dict(is_focused=w is active_window, is_self=w is self_window)
def matches(self, field: str, pat: Pattern) -> bool:
def matches(self, field: str, pat: 'Pattern[str]') -> bool:
if field == 'id':
return bool(pat.pattern == str(self.id))
if field == 'title':