We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1658cb2 commit fb42aa8Copy full SHA for fb42aa8
factory/base.py
@@ -514,7 +514,7 @@ def build(cls, **kwargs) -> T:
514
return cls._generate(enums.BUILD_STRATEGY, kwargs)
515
516
@classmethod
517
- def build_batch(cls, size, **kwargs) -> List[T]:
+ def build_batch(cls, size: int, **kwargs) -> List[T]:
518
"""Build a batch of instances of the given class, with overridden attrs.
519
520
Args:
@@ -531,7 +531,7 @@ def create(cls, **kwargs) -> T:
531
return cls._generate(enums.CREATE_STRATEGY, kwargs)
532
533
534
- def create_batch(cls, size, **kwargs) -> List[T]:
+ def create_batch(cls, size: int, **kwargs) -> List[T]:
535
"""Create a batch of instances of the given class, with overridden attrs.
536
537
0 commit comments