Skip to content

Commit 2aa72c3

Browse files
committed
Add the type hint for Windows._filter
Helps with type inference of methods like .filter() in Pylance.
1 parent 2f01878 commit 2aa72c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ahkpy/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def filter(self, title=UNSET, *, class_name=UNSET, id=UNSET, pid=UNSET, exe=UNSE
9393
"""
9494
return self._filter(title, class_name, id, pid, exe, text, match)
9595

96-
def _filter(self, title, class_name, id, pid, exe, text, match):
96+
def _filter(self, title, class_name, id, pid, exe, text, match) -> 'Windows':
9797
if (
9898
title is UNSET and class_name is UNSET and id is UNSET and pid is UNSET and exe is UNSET and
9999
text is UNSET and match is None

0 commit comments

Comments
 (0)