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/common/modules/misc.py')
-rw-r--r--gajim/common/modules/misc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gajim/common/modules/misc.py b/gajim/common/modules/misc.py
index 1f72e8e5f..5993bbeb8 100644
--- a/gajim/common/modules/misc.py
+++ b/gajim/common/modules/misc.py
@@ -14,7 +14,6 @@
# All XEPs that don’t need their own module
-from typing import Optional
import logging
@@ -41,7 +40,7 @@ def parse_oob(properties: MessageProperties,
# XEP-0308: Last Message Correction
-def parse_correction(properties: MessageProperties) -> Optional[str]:
+def parse_correction(properties: MessageProperties) -> str | None:
if not properties.is_correction:
return None
assert properties.correction is not None