diff options
author | Florian Bruhin <me@the-compiler.org> | 2018-12-13 19:44:48 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2018-12-13 19:44:48 +0100 |
commit | f49384f0bfc8ccf2639cd6c26b35c6215b64a55e (patch) | |
tree | 9faa37a1534a2b2bd28073112efaef0fcdc5c086 /qutebrowser/api | |
parent | 02596fd325c853330f2a9cf5c223e5dc8b9f6c69 (diff) | |
download | qutebrowser-f49384f0bfc8ccf2639cd6c26b35c6215b64a55e.tar.gz qutebrowser-f49384f0bfc8ccf2639cd6c26b35c6215b64a55e.zip |
Expose InterceptorType via qutebrowser.api.interceptor
Diffstat (limited to 'qutebrowser/api')
-rw-r--r-- | qutebrowser/api/interceptor.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qutebrowser/api/interceptor.py b/qutebrowser/api/interceptor.py index 634ae1409..78819dc46 100644 --- a/qutebrowser/api/interceptor.py +++ b/qutebrowser/api/interceptor.py @@ -24,7 +24,11 @@ from qutebrowser.extensions import interceptors from qutebrowser.extensions.interceptors import Request -def register(interceptor: interceptors.InterceptorType) -> None: +#: Type annotation for an interceptor function. +InterceptorType = interceptors.InterceptorType + + +def register(interceptor: InterceptorType) -> None: """Register a request interceptor. Whenever a request happens, the interceptor gets called with a |