diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-11 19:35:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-11 19:41:04 +0200 |
commit | bd2aac6de2e67477478d6430c1243bd64404422d (patch) | |
tree | 92c417c8fe6dd9cc8e84063efa6759879f8e5183 /poezio/decorators.py | |
parent | 0541bbb4bcd3144afa682d8041f1235274a1468d (diff) | |
download | poezio-bd2aac6de2e67477478d6430c1243bd64404422d.tar.gz poezio-bd2aac6de2e67477478d6430c1243bd64404422d.tar.bz2 poezio-bd2aac6de2e67477478d6430c1243bd64404422d.tar.xz poezio-bd2aac6de2e67477478d6430c1243bd64404422d.zip |
typing: fix a bunch of type errors
add more annotations
Diffstat (limited to 'poezio/decorators.py')
-rw-r--r-- | poezio/decorators.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/poezio/decorators.py b/poezio/decorators.py index ae975399..9342161f 100644 --- a/poezio/decorators.py +++ b/poezio/decorators.py @@ -13,9 +13,12 @@ from typing import ( List, Optional, TypeVar, + TYPE_CHECKING, ) from poezio import common +if TYPE_CHECKING: + from poezio.core.core import Core T = TypeVar('T', bound=Callable[..., Any]) @@ -56,6 +59,8 @@ def wrap_generic(func: Callable, before: BeforeFunc = None, after: AfterFunc = N class RefreshWrapper: + core: Optional[Core] + def __init__(self) -> None: self.core = None |