Fix annotation
This commit is contained in:
parent
f49384f0bf
commit
206a2f199b
@ -42,7 +42,7 @@ class WebKitElement(webelem.AbstractWebElement):
|
|||||||
|
|
||||||
"""A wrapper around a QWebElement."""
|
"""A wrapper around a QWebElement."""
|
||||||
|
|
||||||
def __init__(self, elem: QWebElement, tab: webkittab.WebKitTab) -> None:
|
def __init__(self, elem: QWebElement, tab: 'webkittab.WebKitTab') -> None:
|
||||||
super().__init__(tab)
|
super().__init__(tab)
|
||||||
if isinstance(elem, self.__class__):
|
if isinstance(elem, self.__class__):
|
||||||
raise TypeError("Trying to wrap a wrapper!")
|
raise TypeError("Trying to wrap a wrapper!")
|
||||||
|
Loading…
Reference in New Issue
Block a user