Skip to content

Commit

Permalink
fix: signature and export
Browse files Browse the repository at this point in the history
  • Loading branch information
FlickerSoul committed Nov 22, 2023
1 parent e2e784e commit 98a02c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/gapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
from .core.test_result import TestResult
from .core.tester import post_tests, pre_tests
from .core.unittest_wrapper import post_hook, pre_hook
from .core.unittest_wrapper import TestCaseWrapper, post_hook, pre_hook
from .gradescope.datatypes.gradescope_meta import GradescopeSubmissionMetadata

__all__ = [
Expand All @@ -39,4 +39,5 @@
"pre_tests",
"TestResult",
"GradescopeSubmissionMetadata",
"TestCaseWrapper",
]
16 changes: 7 additions & 9 deletions src/gapper/core/test_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ def __new__(
gap_is_pipeline: bool | Sequence[bool] = False,
gap_max_score: float | Sequence[float] | None = None,
gap_weight: float | Sequence[float] | None = None,
gap_params: bool = False,
gap_param_iter: bool = False,
gap_singular_params: bool = False,
gap_singular_param_iter: bool = False,
**kwargs: Any,
) -> None:
...
Expand Down Expand Up @@ -237,10 +233,11 @@ def __init__(
:param gap_override_check: The custom equality check function.
:param gap_easy_context: Whether to use context directly in gap override tests.
:param gap_override_test: The custom test function.
:param gap_post_hooks: The custom post check functions.
:param gap_pre_hooks: The custom functions run before tests.
:param gap_post_hooks: The custom functions run after tests.
:param gap_description: The description of the test case.
:param gap_is_pipeline: Whether the test case is a pipeline.
:param gap_max_score: The max score of the test case.
:param gap_max_score: The max score of the test case. This and gap_weight cannot be specified as the same ti
:param kwargs: The keyword arguments for the test parameter, including kwargs.
"""

Expand Down Expand Up @@ -274,10 +271,11 @@ def __init__(
:param gap_override_check: The custom equality check function.
:param gap_easy_context: Whether to use context directly in gap override tests.
:param gap_override_test: The custom test function.
:param gap_post_hooks: The custom post check functions.
:param gap_pre_hooks: The custom functions run before tests.
:param gap_post_hooks: The custom functions run after tests.
:param gap_description: The description of the test case.
:param gap_is_pipeline: Whether the test case is a pipeline.
:param gap_weight: The weight of the test case.
:param gap_weight: The weight of the test case. This and gap_max_score cannot be specified as the same time.
:param kwargs: The keyword arguments for the test parameter, including kwargs.
"""

Expand Down Expand Up @@ -529,7 +527,7 @@ def __init__(
:param kwargs: The keyword arguments for the test parameter bundle.
.. seealso::
:class:`gapper.core.test_parameter.TestParam`
seealso::
.. seealso::
:class:`gapper.core.test_parameter.ParamExtractor`
"""
if (
Expand Down

0 comments on commit 98a02c8

Please sign in to comment.