chore: update typing to be generic on function args
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import sys
|
||||
import textwrap
|
||||
import traceback
|
||||
import typing
|
||||
from collections.abc import Callable, Generator, Iterator, Mapping, Set
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator, Mapping, Set
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Union
|
||||
|
||||
@@ -601,7 +601,7 @@ class Options:
|
||||
config_settings=config_settings,
|
||||
)
|
||||
|
||||
def check_for_invalid_configuration(self, identifiers: list[str]) -> None:
|
||||
def check_for_invalid_configuration(self, identifiers: Iterable[str]) -> None:
|
||||
if self.platform in {"macos", "windows"}:
|
||||
before_all_values = {self.build_options(i).before_all for i in identifiers}
|
||||
|
||||
@@ -633,7 +633,7 @@ class Options:
|
||||
read_config_file=False,
|
||||
)
|
||||
|
||||
def summary(self, identifiers: list[str]) -> str:
|
||||
def summary(self, identifiers: Iterable[str]) -> str:
|
||||
lines = []
|
||||
global_option_names = sorted(f.name for f in dataclasses.fields(self.globals))
|
||||
|
||||
@@ -671,7 +671,7 @@ class Options:
|
||||
option_name: str,
|
||||
option_value: Any,
|
||||
default_value: Any,
|
||||
overrides: dict[str, Any] | None = None,
|
||||
overrides: Mapping[str, Any] | None = None,
|
||||
) -> str:
|
||||
"""
|
||||
Return a summary of the option value, including any overrides, with
|
||||
|
||||
Reference in New Issue
Block a user