Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gajim/gtk/conversation/message_widget.py')
-rw-r--r--gajim/gtk/conversation/message_widget.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gajim/gtk/conversation/message_widget.py b/gajim/gtk/conversation/message_widget.py
index b376c555b..bdac08e3a 100644
--- a/gajim/gtk/conversation/message_widget.py
+++ b/gajim/gtk/conversation/message_widget.py
@@ -14,9 +14,6 @@
from __future__ import annotations
-from typing import Optional
-from typing import Union
-
from gi.repository import Gdk
from gi.repository import Gtk
@@ -32,7 +29,7 @@ from gajim.gtk.conversation.code_widget import CodeWidget
from gajim.gtk.conversation.plain_widget import PlainWidget
from gajim.gtk.conversation.quote_widget import QuoteWidget
-ContentT = Union[ParsingResult, QuoteBlock]
+ContentT = ParsingResult | QuoteBlock
class MessageWidget(Gtk.Box):
@@ -60,7 +57,7 @@ class MessageWidget(Gtk.Box):
def add_with_styling(self,
text: str,
- nickname: Optional[str] = None) -> None:
+ nickname: str | None = None) -> None:
self._original_text = text
if len(text) > MAX_MESSAGE_LENGTH: