Make mypy happy
This commit is contained in:
parent
407ac42f1d
commit
11775eb12b
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
from contextlib import suppress
|
||||
from functools import wraps
|
||||
from gettext import gettext as _
|
||||
from typing import Any, Concatenate, Deque, NamedTuple, Optional, ParamSpec, TypeVar
|
||||
from typing import Any, Concatenate, Deque, NamedTuple, Optional, ParamSpec, TypeVar, cast
|
||||
|
||||
from .borders import Border, Borders
|
||||
from .child import Child
|
||||
|
|
@ -69,7 +69,7 @@ def wrapper(self: 'TabManager', *args: P.args, **kwargs: P.kwargs) -> T:
|
|||
if not self.tab_bar_hidden:
|
||||
self.layout_tab_bar()
|
||||
self.resize(only_tabs=True)
|
||||
return wrapper
|
||||
return cast(Callable[Concatenate['TabManager', P], T], wrapper)
|
||||
|
||||
|
||||
class TabMouseEvent(NamedTuple):
|
||||
|
|
|
|||
Loading…
Reference in a new issue