Skip to content

Commit

Permalink
Remove superfluous usage of Any
Browse files Browse the repository at this point in the history
  • Loading branch information
martis42 committed Jan 5, 2024
1 parent b000ec5 commit 585f65e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/analyze_includes/system_under_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from dataclasses import dataclass, field
from enum import Enum, auto
from pathlib import Path
from typing import Any


class UsageStatus(Enum):
Expand Down Expand Up @@ -93,7 +92,7 @@ def _cc_targets_from_deps(deps: list[Path]) -> list[CcTarget]:
return [_make_cc_target(dep) for dep in deps]


def _get_include_paths(target_info: dict[str, Any]) -> list[str]:
def _get_include_paths(target_info: dict[str, list[str]]) -> list[str]:
"""
'.' represents the workspace root relative to which all paths in a Bazel workspace are defined. Our internal logic
does however expect an empty string for the "include relative to workspace root" case.
Expand All @@ -109,7 +108,7 @@ def replace_dot(paths: list[str]) -> list[str]:
)


def _get_defines(target_info: dict[str, Any]) -> list[str]:
def _get_defines(target_info: dict[str, list[str]]) -> list[str]:
"""
Defines with values in BUILD files or the compiler CLI can be specified via '<DEFINE_TOKEN>=<VALUE>'. However, this
syntax is not valid for the preprocessor, which expects '<DEFINE_TOKEN> <VALUE>'.
Expand Down

0 comments on commit 585f65e

Please sign in to comment.