From abe66fe1f8a8ca6c3fdf818590c99bf1f2305718 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Wed, 13 Sep 2023 15:46:34 -0400 Subject: [PATCH] fix get_args import to support 'future' definition in Python 3.7 --- weaver/processes/constants.py | 4 ++-- weaver/store/base.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weaver/processes/constants.py b/weaver/processes/constants.py index 47bc66cc8..3e59c4dca 100644 --- a/weaver/processes/constants.py +++ b/weaver/processes/constants.py @@ -1,7 +1,7 @@ import sys from types import MappingProxyType -from typing import TYPE_CHECKING, Union, get_args -from typing_extensions import Literal +from typing import TYPE_CHECKING, Union +from typing_extensions import Literal, get_args from weaver.base import Constants diff --git a/weaver/store/base.py b/weaver/store/base.py index f62c2bc27..a9e38395e 100644 --- a/weaver/store/base.py +++ b/weaver/store/base.py @@ -1,6 +1,6 @@ import abc -from typing import TYPE_CHECKING, get_args -from typing_extensions import Literal +from typing import TYPE_CHECKING +from typing_extensions import Literal, get_args from weaver.utils import VersionFormat