Skip to content

Commit

Permalink
Increase the maximum number of arguments (#27)
Browse files Browse the repository at this point in the history
Set pylint to be more lenient.
  • Loading branch information
kralka authored Oct 7, 2024
1 parent 36ec2f7 commit 34b61df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,6 @@ valid-metaclass-classmethod-first-arg=mcs
overgeneral-exceptions=builtins.StandardError,
builtins.Exception,
builtins.BaseException

# Set number of arguments for too-many-arguments
max-args = 10
8 changes: 4 additions & 4 deletions src/sedpack/io/dataset_iteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def as_tfdataset( # pylint: disable=too-many-arguments

return tf_dataset

async def as_numpy_iterator_async( # pylint: disable=too-many-arguments
async def as_numpy_iterator_async(
self,
*,
split: SplitT,
Expand Down Expand Up @@ -354,7 +354,7 @@ async def as_numpy_iterator_async( # pylint: disable=too-many-arguments
async for example in example_iterator:
yield example

def _as_numpy_common( # pylint: disable=too-many-arguments
def _as_numpy_common(
self,
*,
split: SplitT,
Expand Down Expand Up @@ -405,7 +405,7 @@ def _as_numpy_common( # pylint: disable=too-many-arguments
buffer_size=len(shard_paths))
return shard_paths_iterator

def as_numpy_iterator_concurrent( # pylint: disable=too-many-arguments
def as_numpy_iterator_concurrent(
self,
*,
split: SplitT,
Expand Down Expand Up @@ -508,7 +508,7 @@ def as_numpy_iterator_concurrent( # pylint: disable=too-many-arguments
itertools.islice(shard_paths_iterator,
file_parallelism))

def as_numpy_iterator( # pylint: disable=too-many-arguments
def as_numpy_iterator(
self,
*,
split: SplitT,
Expand Down

0 comments on commit 34b61df

Please sign in to comment.