diff options
Diffstat (limited to 'qutebrowser/utils/usertypes.py')
-rw-r--r-- | qutebrowser/utils/usertypes.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qutebrowser/utils/usertypes.py b/qutebrowser/utils/usertypes.py index 893dae877..d180a6699 100644 --- a/qutebrowser/utils/usertypes.py +++ b/qutebrowser/utils/usertypes.py @@ -23,7 +23,7 @@ import operator import enum from typing import Any, Optional, Sequence, TypeVar, Union -import attr +import dataclasses from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QTimer from PyQt5.QtCore import QUrl @@ -496,7 +496,7 @@ class AbstractCertificateErrorWrapper: raise NotImplementedError -@attr.s +@dataclasses.dataclass class NavigationRequest: """A request to navigate to the given URL.""" @@ -526,7 +526,7 @@ class NavigationRequest: #: None of the above. other = 8 - url: QUrl = attr.ib() - navigation_type: Type = attr.ib() - is_main_frame: bool = attr.ib() - accepted: bool = attr.ib(default=True) + url: QUrl + navigation_type: Type + is_main_frame: bool + accepted: bool = True |