From 6f1eb731386cc7525577a51742d4f1629ec87461 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Wed, 26 Jul 2023 14:53:07 -0500 Subject: [PATCH] Remove use of Literal type (SOFTWARE-5629) https://opensciencegrid.atlassian.net/browse/SOFTWARE-5629 --- src/stashcache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stashcache.py b/src/stashcache.py index 55bfb6cdc..838bf90c0 100644 --- a/src/stashcache.py +++ b/src/stashcache.py @@ -1,5 +1,5 @@ from collections import defaultdict -from typing import Dict, List, Optional, Literal +from typing import Dict, List, Optional from webapp.common import is_null, PreJSON, XROOTD_CACHE_SERVER, XROOTD_ORIGIN_SERVER from webapp.exceptions import DataError, ResourceNotRegistered, ResourceMissingService @@ -542,7 +542,7 @@ def get_namespaces_info(global_data: GlobalData) -> PreJSON: def _service_resource_dict( r: Resource, - service_name: Literal[XROOTD_CACHE_SERVER, XROOTD_ORIGIN_SERVER], + service_name, auth_port_default: int, unauth_port_default: int ): @@ -594,7 +594,7 @@ def _namespace_dict(ns: Namespace): def _resource_has_downed_service( r: Resource, t: Topology, - service_name: Literal[XROOTD_CACHE_SERVER, XROOTD_ORIGIN_SERVER] + service_name ): if r.name not in t.present_downtimes_by_resource: return False