From 2d8e721b473579deb89870f5934ca3de82fbee0b Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:28:21 +0100 Subject: [PATCH] f --- cylc/flow/parsec/config.py | 4 ++-- cylc/flow/scripts/config.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cylc/flow/parsec/config.py b/cylc/flow/parsec/config.py index 2802f1ed9bf..049867fd686 100644 --- a/cylc/flow/parsec/config.py +++ b/cylc/flow/parsec/config.py @@ -20,7 +20,6 @@ import sys from textwrap import dedent from typing import TYPE_CHECKING, Callable, Iterable, List, Optional -from typing_extensions import Literal from cylc.flow.context_node import ContextNode from cylc.flow.parsec.exceptions import ( @@ -36,11 +35,12 @@ if TYPE_CHECKING: from optparse import Values + from typing_extensions import Literal class ParsecConfig: """Object wrapper for parsec functions.""" - META: Literal[str] = 'meta' + META: "Literal['meta']" = 'meta' def __init__( self, diff --git a/cylc/flow/scripts/config.py b/cylc/flow/scripts/config.py index 562f39c6fdd..67b14037daf 100755 --- a/cylc/flow/scripts/config.py +++ b/cylc/flow/scripts/config.py @@ -50,7 +50,6 @@ """ import asyncio -import json import os.path from typing import List, Optional, TYPE_CHECKING