Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Viicos <victo.plot@gmail.com>
  • Loading branch information
last-partizan and Viicos committed Jan 18, 2024
1 parent 1658cb2 commit fb42aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def build(cls, **kwargs) -> T:
return cls._generate(enums.BUILD_STRATEGY, kwargs)

@classmethod
def build_batch(cls, size, **kwargs) -> List[T]:
def build_batch(cls, size: int, **kwargs) -> List[T]:
"""Build a batch of instances of the given class, with overridden attrs.
Args:
Expand All @@ -531,7 +531,7 @@ def create(cls, **kwargs) -> T:
return cls._generate(enums.CREATE_STRATEGY, kwargs)

@classmethod
def create_batch(cls, size, **kwargs) -> List[T]:
def create_batch(cls, size: int, **kwargs) -> List[T]:
"""Create a batch of instances of the given class, with overridden attrs.
Args:
Expand Down

0 comments on commit fb42aa8

Please sign in to comment.