Make the return type more human readable

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
youve 2022-08-16 21:38:10 +02:00 committed by GitHub
parent de03a61112
commit e42ab05791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ class AbstractWebElement(collections.abc.MutableMapping): # type: ignore[type-a
Qt.NoModifier)
self._tab.send_event(event)
def info_str(self) -> Union[str, None]:
def info_str(self) -> Optional[str]:
"""Return the contents of the element's title or alt tag for display."""
return self.get("title") or self.get("alt") or None