Skip to content

Commit

Permalink
chore(refactor): prefer typing.Any to 'object' for type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 14, 2024
1 parent 02857af commit 1c6ca10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rapids_dependency_file_generator/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _parse_extras(extras: dict[str, str]) -> FileExtras:
)


def _parse_file(file_config: dict[str, object]) -> File:
def _parse_file(file_config: dict[str, typing.Any]) -> File:
def get_extras():
try:
extras = file_config["extras"]
Expand All @@ -185,7 +185,7 @@ def _parse_requirement(requirement: typing.Union[str, dict[str, list[str]]]) ->
return PipRequirements(pip=requirement["pip"])


def _parse_dependencies(dependencies: dict[str, object]) -> Dependencies:
def _parse_dependencies(dependencies: dict[str, typing.Any]) -> Dependencies:
return Dependencies(
common=[
CommonDependencies(
Expand Down Expand Up @@ -217,12 +217,12 @@ def _parse_channels(channels) -> list[str]:
return list(channels)


def parse_config(config: dict[str, object], path: PathLike) -> Config:
def parse_config(config: dict[str, typing.Any], path: PathLike) -> Config:
"""Parse a configuration file from a dictionary.
Parameters
----------
config : dict[str, object]
config : dict[str, Any]
The dictionary to parse.
path : PathLike
The path to the parsed configuration file. This will be stored as the ``path``
Expand Down

0 comments on commit 1c6ca10

Please sign in to comment.