Skip to content

Commit

Permalink
Allow to use Literal for all python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Jan 30, 2024
1 parent d785bd5 commit 82d9a6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kiwi/bootloader/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
# You should have received a copy of the GNU General Public License
# along with kiwi. If not, see <http://www.gnu.org/licenses/>
#
from typing import TYPE_CHECKING, Dict, Literal, Union, overload
import sys
from typing import TYPE_CHECKING, Dict, Union, overload

if sys.version_info >= (3, 8):
from typing import Literal # pragma: no cover
else: # pragma: no cover
from typing_extensions import Literal # pragma: no cover

from kiwi.exceptions import (
KiwiBootLoaderConfigSetupError
Expand Down

0 comments on commit 82d9a6c

Please sign in to comment.