From 60a8993aa370aeb38b8dd1683d96e67e1aae7bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 24 Jul 2024 15:55:31 +0200 Subject: [PATCH] Fix compatibility with Python 3.9 --- src/opensuse_distro_aliases/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/opensuse_distro_aliases/__init__.py b/src/opensuse_distro_aliases/__init__.py index 708b4fa..4b241e8 100644 --- a/src/opensuse_distro_aliases/__init__.py +++ b/src/opensuse_distro_aliases/__init__.py @@ -3,6 +3,7 @@ from typing import Dict from typing import List from typing import Literal +from typing import Optional from typing import TypedDict from typing import Union @@ -25,7 +26,7 @@ class Distro: namever: str #: main project on build.opensuse.org from which this distribution is built - obs_project_name: str | None + obs_project_name: Optional[str] class _Release(TypedDict):