From 01e755478a4a40ca877b401902e26f0cc7eae963 Mon Sep 17 00:00:00 2001 From: twald Date: Wed, 22 Jan 2025 15:42:53 +0200 Subject: [PATCH] fix mypy --- checkov/bicep/graph_builder/local_graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkov/bicep/graph_builder/local_graph.py b/checkov/bicep/graph_builder/local_graph.py index 77565075267..b0d9951d58d 100644 --- a/checkov/bicep/graph_builder/local_graph.py +++ b/checkov/bicep/graph_builder/local_graph.py @@ -1,7 +1,7 @@ from __future__ import annotations import logging -from enum import Enum +from enum import StrEnum from pathlib import Path from typing import Any, TYPE_CHECKING, overload, Literal @@ -34,7 +34,7 @@ BicepElementsAlias: TypeAlias = Literal["globals", "parameters", "variables", "resources", "modules", "outputs"] -class BicepElements(str, Enum): +class BicepElements(StrEnum): GLOBALS: BicepElements = "globals" PARAMETERS: BicepElements = "parameters" VARIABLES: BicepElements = "variables"