Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwald committed Jan 22, 2025
1 parent 83e24f1 commit d95e9aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/checks/resource/AKSMaxPodsMinimum.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self) -> None:
def scan_resource_conf(self, conf: dict[str, Any]) -> CheckResult:
max_pods: Optional[int] = 30

properties = conf.get("properties")
properties = conf.get("properties", {})
if properties and isinstance(properties, dict):
max_pods = properties.get("maxPods")

Expand Down
12 changes: 6 additions & 6 deletions checkov/bicep/graph_builder/local_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@


class BicepElements(str, Enum):
GLOBALS: Literal["globals"] = "globals"
PARAMETERS: Literal["parameters"] = "parameters"
VARIABLES: Literal["variables"] = "variables"
RESOURCES: Literal["resources"] = "resources"
MODULES: Literal["modules"] = "modules"
OUTPUTS: Literal["outputs"] = "outputs"
GLOBALS: BicepElements = "globals"
PARAMETERS: BicepElements = "parameters"
VARIABLES: BicepElements = "variables"
RESOURCES: BicepElements = "resources"
MODULES: BicepElements = "modules"
OUTPUTS: BicepElements = "outputs"


class BicepLocalGraph(LocalGraph[BicepBlock]):
Expand Down
4 changes: 2 additions & 2 deletions checkov/common/parsers/json/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import logging
from collections.abc import Sequence
from json import JSONDecoder
from json.decoder import WHITESPACE, WHITESPACE_STR, BACKSLASH, STRINGCHUNK, JSONArray # type:ignore[attr-defined] # they are not explicitly exported
from json.decoder import WHITESPACE, WHITESPACE_STR, BACKSLASH, STRINGCHUNK, JSONArray # type:ignore # they are not explicitly exported
from typing import Any, Callable, Pattern, Match

from json.scanner import NUMBER_RE # type:ignore[import-not-found] # is not explicitly exported
from json.scanner import NUMBER_RE # type:ignore # is not explicitly exported

from checkov.common.parsers.node import StrNode, DictNode, ListNode
from checkov.common.parsers.json.errors import NullError, DuplicateError, DecodeError
Expand Down

0 comments on commit d95e9aa

Please sign in to comment.