mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 09:48:09 +02:00
Make mypy happy
This commit is contained in:
@@ -732,9 +732,6 @@ class Window:
|
|||||||
return not self.at_prompt
|
return not self.at_prompt
|
||||||
|
|
||||||
def matches(self, field: str, pat: MatchPatternType) -> bool:
|
def matches(self, field: str, pat: MatchPatternType) -> bool:
|
||||||
if not pat:
|
|
||||||
return False
|
|
||||||
|
|
||||||
if isinstance(pat, tuple):
|
if isinstance(pat, tuple):
|
||||||
if field == 'env':
|
if field == 'env':
|
||||||
return key_val_matcher(self.child.environ.items(), *pat)
|
return key_val_matcher(self.child.environ.items(), *pat)
|
||||||
|
|||||||
Reference in New Issue
Block a user