diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-06-30 00:23:35 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-06-30 00:24:41 +0200 |
commit | 9637b8b4fa142137909d37eda7eda4fe9e2521b4 (patch) | |
tree | 789565d76f0c83df4474acb3844c5bea262c78c8 | |
parent | 783963b4dae644ef79f3d24a7f98b4c43e2b20e3 (diff) | |
download | qutebrowser-9637b8b4fa142137909d37eda7eda4fe9e2521b4.tar.gz qutebrowser-9637b8b4fa142137909d37eda7eda4fe9e2521b4.zip |
qt6 mypy: Fix broken assert
-rw-r--r-- | qutebrowser/utils/urlutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index f9eada254..76e3aa7b5 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -555,7 +555,7 @@ def same_domain(url1: QUrl, url2: QUrl) -> bool: # # There are no other callers of same_domain, and url2 will only be ever valid when # we use a NetworkManager from QtWebKit. However, QtWebKit is Qt 5 only. - assert machinery.IS_QT6, machinery.INFO + assert machinery.IS_QT5, machinery.INFO suffix1 = url1.topLevelDomain() # type: ignore[attr-defined,unused-ignore] suffix2 = url2.topLevelDomain() # type: ignore[attr-defined,unused-ignore] |