Finish type hints for utils.usertypes

This commit is contained in:
Florian Bruhin 2019-10-11 16:23:44 +02:00
parent 7a2a736cc5
commit ef88663ecd
2 changed files with 8 additions and 4 deletions

View File

@ -157,3 +157,7 @@ disallow_incomplete_defs = True
[mypy-qutebrowser.utils.urlutils]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-qutebrowser.utils.usertypes]
disallow_untyped_defs = True
disallow_incomplete_defs = True

View File

@ -452,7 +452,7 @@ class NavigationRequest:
'other'
])
url = attr.ib()
navigation_type = attr.ib()
is_main_frame = attr.ib()
accepted = attr.ib(default=True)
url = attr.ib() # type: QUrl
navigation_type = attr.ib() # type: Type
is_main_frame = attr.ib() # type: bool
accepted = attr.ib(default=True) # type: bool