Skip to content

Commit

Permalink
Remove the second typing for ret and res vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
ReaperMantis committed Sep 12, 2023
1 parent 0f2097e commit a26c7f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,8 @@ def getName(self) -> Optional[str]:
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
if res:
return str(res[0])
ret: Optional[Xlib.protocol.request.GetProperty] = self.getProperty(Window.LEGACY_NAME)
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
ret = self.getProperty(Window.LEGACY_NAME)
res = getPropertyValue(ret, display=self.display)
if res:
return str(res[0])
return None
Expand Down

0 comments on commit a26c7f8

Please sign in to comment.