Skip to content

Commit

Permalink
Add type annotation to func args and return type
Browse files Browse the repository at this point in the history
    * test_experiment_builder_discrete_default_params
    * test_experiment_builder_continuous_default_params
  • Loading branch information
dantp-ai committed Jan 2, 2024
1 parent 2d3c637 commit 0805062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/highlevel/test_experiment_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
DDPGExperimentBuilder,
DiscreteSACExperimentBuilder,
DQNExperimentBuilder,
ExperimentBuilder,
ExperimentConfig,
IQNExperimentBuilder,
PGExperimentBuilder,
Expand All @@ -33,7 +34,7 @@
PGExperimentBuilder,
],
)
def test_experiment_builder_continuous_default_params(builder_cls):
def test_experiment_builder_continuous_default_params(builder_cls: type[ExperimentBuilder]) -> None:
env_factory = ContinuousTestEnvFactory()
sampling_config = SamplingConfig(
num_epochs=1,
Expand Down Expand Up @@ -62,7 +63,7 @@ def test_experiment_builder_continuous_default_params(builder_cls):
IQNExperimentBuilder,
],
)
def test_experiment_builder_discrete_default_params(builder_cls):
def test_experiment_builder_discrete_default_params(builder_cls: type[ExperimentBuilder]) -> None:
env_factory = DiscreteTestEnvFactory()
sampling_config = SamplingConfig(
num_epochs=1,
Expand Down

0 comments on commit 0805062

Please sign in to comment.