Skip to content

Commit

Permalink
🏷️ Add type-hinting for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
valentingol committed Jul 9, 2023
1 parent f5dd681 commit db72326
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cliconfig/config_routines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Functions to manipulate config as dict with yaml files and CLI."""
import sys
from typing import List, Optional
from typing import Any, Dict, List, Optional

from cliconfig.base import Config
from cliconfig.cli_parser import parse_cli
Expand Down Expand Up @@ -89,7 +89,8 @@ def make_config(
process_list_ += DefaultProcessings().list
config = Config({}, process_list_)
if no_cli:
additional_config_paths, cli_params_dict = [], {}
additional_config_paths: List[str] = []
cli_params_dict: Dict[str, Any] = {}
else:
additional_config_paths, cli_params_dict = parse_cli(sys.argv)
if not additional_config_paths and fallback:
Expand Down

0 comments on commit db72326

Please sign in to comment.