Skip to content

Commit

Permalink
style: adding type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jinder1s authored and jinder1s committed Feb 9, 2021
1 parent 3cf729f commit d541302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_repo_health/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Plugin takes care of gathering checks, running checks,
and outputting report based on data gathered during checks.
"""

from typing import Union

__version__ = "2.1.0"


def health_metadata(parent_path, output_keys):
def health_metadata(parent_path: list, output_keys: dict):
"""
Make a decorator that attaches metadata to the target function.
Expand Down Expand Up @@ -39,7 +39,7 @@ def health_metadata_decorator(func):
return health_metadata_decorator


def add_key_to_metadata(output_key):
def add_key_to_metadata(output_key: Union[str, tuple]):
"""
Designed for checks which only define one key
Expand Down

0 comments on commit d541302

Please sign in to comment.