Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
a6550805 by wurstsalat at 2022-12-09T23:59:07+01:00
cq: Types: Remove obsolete types
- - - - -
1 changed file:
- gajim/gtk/types.py
Changes:
=====================================
gajim/gtk/types.py
=====================================
@@ -14,7 +14,8 @@
# Types for typechecking
-from typing import Union
+from __future__ import annotations
+
from typing import TYPE_CHECKING
from typing import TypeVar
@@ -22,7 +23,7 @@
if TYPE_CHECKING:
- from .control import ChatControl
+ from .control import ChatControl # noqa: F401
from .conversation.message_widget import MessageWidget # noqa: F401
from .conversation.view import ConversationView # noqa: F401
from .conversation.rows.call import CallRow # noqa: F401
@@ -39,8 +40,4 @@
from .conversation.rows.scroll_hint import ScrollHintRow # noqa: F401
-ControlT = Union['ChatControl']
-
-ConversationViewT = Union['ConversationView']
-
SomeSurface = TypeVar('SomeSurface', bound=cairo.Surface)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a6550805a2e7b46c62fff8ac867569f1c9089281
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a6550805a2e7b46c62fff8ac867569f1c9089281
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits