Skip to content

Commit

Permalink
comply with check_env (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronangliss committed Dec 24, 2023
1 parent 4df6d55 commit 081ce7a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/poke_env/player/openai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ def reset(
self,
*,
seed: Optional[int] = None,
return_info: bool = False,
options: Optional[Dict[str, Any]] = None,
) -> Tuple[ObsType, Dict[str, Any]]:
if seed is not None:
Expand Down Expand Up @@ -356,7 +355,7 @@ def step(
:rtype: Tuple[ObsType, float, bool, bool, Dict[str, Any]]
"""
if not self.current_battle:
obs, info = self.reset(return_info=True)
obs, info = self.reset()
return obs, 0.0, False, False, info
if self.current_battle.finished:
raise RuntimeError("Battle is already finished, call reset")
Expand Down Expand Up @@ -423,9 +422,6 @@ def close(self, purge: bool = True):
)
closing_task.result()

def seed(self, seed: Optional[int] = None):
random.seed(seed)

def background_send_challenge(self, username: str):
"""
Sends a single challenge specified player. The function immediately returns
Expand Down

0 comments on commit 081ce7a

Please sign in to comment.