Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
-
a6550805
by wurstsalat at 2022-12-09T23:59:07+01:00
1 changed file:
Changes:
| ... | ... | @@ -14,7 +14,8 @@ |
| 14 | 14 | |
| 15 | 15 | # Types for typechecking
|
| 16 | 16 | |
| 17 | -from typing import Union
|
|
| 17 | +from __future__ import annotations
|
|
| 18 | + |
|
| 18 | 19 | from typing import TYPE_CHECKING
|
| 19 | 20 | from typing import TypeVar
|
| 20 | 21 | |
| ... | ... | @@ -22,7 +23,7 @@ |
| 22 | 23 | |
| 23 | 24 | |
| 24 | 25 | if TYPE_CHECKING:
|
| 25 | - from .control import ChatControl
|
|
| 26 | + from .control import ChatControl # noqa: F401
|
|
| 26 | 27 | from .conversation.message_widget import MessageWidget # noqa: F401
|
| 27 | 28 | from .conversation.view import ConversationView # noqa: F401
|
| 28 | 29 | from .conversation.rows.call import CallRow # noqa: F401
|
| ... | ... | @@ -39,8 +40,4 @@ |
| 39 | 40 | from .conversation.rows.scroll_hint import ScrollHintRow # noqa: F401
|
| 40 | 41 | |
| 41 | 42 | |
| 42 | -ControlT = Union['ChatControl']
|
|
| 43 | - |
|
| 44 | -ConversationViewT = Union['ConversationView']
|
|
| 45 | - |
|
| 46 | 43 | SomeSurface = TypeVar('SomeSurface', bound=cairo.Surface) |