Fix annotation

This commit is contained in:
Florian Bruhin 2018-12-14 15:27:55 +01:00
parent f49384f0bf
commit 206a2f199b

View File

@ -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!")