Skip to content

Commit

Permalink
fix: typing hints
Browse files Browse the repository at this point in the history
  • Loading branch information
FlickerSoul committed Nov 6, 2023
1 parent 26ab76c commit d8c2d16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/gapper/core/result_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class ResultSynthesizer:
def __init__(
self,
*,
results: List[TestResult] = None,
post_tests: List[PostTest] = None,
results: List[TestResult] | None = None,
post_tests: List[PostTest] | None = None,
metadata: GradescopeSubmissionMetadata | None = None,
total_score: float | None = None,
) -> None:
Expand Down
12 changes: 8 additions & 4 deletions src/gapper/core/test_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,6 @@ def __init__[
gap_description: str | Iterable[str] | Sequence[Iterable[str]] | None = None,
gap_is_pipeline: bool | Sequence[bool] = False,
gap_max_score: float | Sequence[float] | None = None,
gap_product: bool = False,
gap_zip: bool = False,
gap_params: bool = False,
gap_param_iter: bool = False,
gap_singular_params: bool = False,
Expand Down Expand Up @@ -371,8 +369,6 @@ def __init__[
gap_description: str | Iterable[str] | Sequence[Iterable[str]] | None = None,
gap_is_pipeline: bool | Sequence[bool] = False,
gap_weight: float | Sequence[float] | None = None,
gap_product: bool = False,
gap_zip: bool = False,
gap_params: bool = False,
gap_param_iter: bool = False,
gap_singular_params: bool = False,
Expand All @@ -396,12 +392,20 @@ def __init__(
:param args: The arguments for the test parameter bundle.
:param gap_product: Whether to take the cartesian product of the arguments.
.. deprecated::
Use params, param_iter, singular_params, singular_param_iter instead.
:param gap_zip: Whether to zip the arguments.
.. deprecated::
Use params, param_iter, singular_params, singular_param_iter instead.
:param gap_params: Whether to parse the arguments as parameters.
:param gap_param_iter: Whether to parse the argument as parameter iterators.
:param gap_singular_params: Whether to parse the arguments as singular parameters.
:param gap_singular_param_iter: Whether to parse the arguments as singular parameter iterators.
:param kwargs: The keyword arguments for the test parameter bundle.
.. seealso::
:class:`gapper.core.test_parameter.TestParam`
seealso::
:class:`gapper.core.test_parameter.ParamExtractor`
"""
if (
gap_params
Expand Down

0 comments on commit d8c2d16

Please sign in to comment.