Skip to content

Commit

Permalink
fixup! use pydantic.PositiveInt
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioSim committed Nov 29, 2023
1 parent c9c908e commit 9143d64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ralph/backends/data/async_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async def write( # noqa: PLR0913
chunk_size: Optional[int] = None,
ignore_errors: bool = False,
operation_type: Optional[BaseOperationType] = None,
concurrency: Optional[int] = None,
concurrency: Optional[PositiveInt] = None,
) -> int:
"""Write data documents to the target index and return their count.
Expand Down
2 changes: 1 addition & 1 deletion src/ralph/backends/data/async_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def write( # noqa: PLR0913
chunk_size: Optional[int] = None,
ignore_errors: bool = False,
operation_type: Optional[BaseOperationType] = None,
concurrency: Optional[int] = None,
concurrency: Optional[PositiveInt] = None,
) -> int:
"""Write data documents to the target collection and return their count.
Expand Down
2 changes: 1 addition & 1 deletion src/ralph/backends/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async def write( # noqa: PLR0913
chunk_size: Optional[int] = None,
ignore_errors: bool = False,
operation_type: Optional[BaseOperationType] = None,
concurrency: Optional[int] = None,
concurrency: Optional[PositiveInt] = None,
) -> int:
"""Write `data` records to the `target` container and return their count.
Expand Down

0 comments on commit 9143d64

Please sign in to comment.