From e3eda28d88b959e3fca7c83455deae0d13438d4b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 9 May 2017 17:49:38 +0200 Subject: [PATCH] Update docstrings --- qutebrowser/browser/browsertab.py | 3 ++- qutebrowser/browser/webengine/webenginetab.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index f133a1646..21c0a080e 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -155,6 +155,8 @@ class AbstractSearch(QObject): Attributes: text: The last thing this view was searched for. + search_displayed: Whether we're currently displaying search results in + this view. _flags: The flags of the last search (needs to be set by subclasses). _widget: The underlying WebView widget. """ @@ -163,7 +165,6 @@ class AbstractSearch(QObject): super().__init__(parent) self._widget = None self.text = None - # Implementing classes will set this. self.search_displayed = False def search(self, text, *, ignore_case=False, reverse=False, diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index d4e3feaa2..3d6d381cb 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -251,8 +251,8 @@ class WebEngineCaret(browsertab.AbstractCaret): """Callback for javascript which clicks the selected element. Args: - js_elems: The elements serialized from javascript. - tab: Open in a new tab or not. + js_elem: The element serialized from javascript. + tab: Open in a new tab. """ if js_elem is None: return