Skip to content

Commit

Permalink
base.py edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ches-001 committed May 31, 2023
1 parent 0118d38 commit cce6c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseline/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class SpaceTypeValidationMixin:
def is_space_type(self, space: Iterable, type: Callable) -> bool:
return all(list(map(lambda x: isinstance(x, type), space)))
return all(list(map(lambda x: isinstance(x, type), space[0:2])))

def is_valid_int_space(self, space: Iterable) -> bool:
return self.is_space_type(space, int) and len(space) == 2
Expand Down

0 comments on commit cce6c80

Please sign in to comment.