Skip to content

Commit a26c7f8

Browse files
committed
Remove the second typing for ret and res vars.
1 parent 0f2097e commit a26c7f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ewmhlib/_ewmhlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,8 @@ def getName(self) -> Optional[str]:
10681068
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
10691069
if res:
10701070
return str(res[0])
1071-
ret: Optional[Xlib.protocol.request.GetProperty] = self.getProperty(Window.LEGACY_NAME)
1072-
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
1071+
ret = self.getProperty(Window.LEGACY_NAME)
1072+
res = getPropertyValue(ret, display=self.display)
10731073
if res:
10741074
return str(res[0])
10751075
return None

0 commit comments

Comments
 (0)