Skip to content

Commit

Permalink
chore(pylint): Fix errors reported by newer version of pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
c0r0n3r committed Dec 13, 2024
1 parent 55fa783 commit 793a28d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cryptoparser/common/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _parse_string_by_length(
item_max_length,
encoding,
converter
): # pylint: disable=too-many-arguments
): # pylint: disable=too-many-arguments,too-many-positional-arguments
if item_min_length > self.unparsed_length:
raise NotEnoughData(item_min_length - self.unparsed_length)

Expand Down Expand Up @@ -177,7 +177,7 @@ def __init__(self, parsable, encoding='ascii'):
super(ParserText, self).__init__(parsable)
self._encoding = encoding

def _check_separators( # pylint: disable=too-many-arguments
def _check_separators( # pylint: disable=too-many-arguments,too-many-positional-arguments
self,
name,
count_offset,
Expand Down Expand Up @@ -206,7 +206,7 @@ def parse_separator(self, separator, min_length=1, max_length=None):
'separator', self._parsed_length, separator, min_length, max_length
)

def _parse_numeric_array( # pylint: disable=too-many-arguments
def _parse_numeric_array( # pylint: disable=too-many-arguments,too-many-positional-arguments
self, name, item_num, separator, converter, is_floating):
value = []
floating_point_found = False
Expand Down Expand Up @@ -293,7 +293,7 @@ def parse_string_by_length(self, name, min_length=1, max_length=None, item_class
self._parsed_values[name] = value
self._parsed_length += parsed_length

def _apply_item_class( # pylint: disable=too-many-arguments
def _apply_item_class( # pylint: disable=too-many-arguments,too-many-positional-arguments
self,
name,
item_offset,
Expand Down Expand Up @@ -326,7 +326,7 @@ def _apply_item_class( # pylint: disable=too-many-arguments

return item

def _parse_string_until_separator( # pylint: disable=too-many-arguments
def _parse_string_until_separator( # pylint: disable=too-many-arguments,too-many-positional-arguments
self,
name,
item_offset,
Expand Down Expand Up @@ -392,7 +392,7 @@ def _parse_string_array(
fallback_class=None,
separator_spaces='',
skip_empty=False
): # pylint: disable=too-many-arguments
): # pylint: disable=too-many-arguments,too-many-positional-arguments
value = []
item_offset = self._parsed_length
max_separator_count = None if skip_empty else 1
Expand Down Expand Up @@ -449,7 +449,7 @@ def parse_string_array(
separator_spaces='',
skip_empty=False,
max_item_num=None,
): # pylint: disable=too-many-arguments
): # pylint: disable=too-many-arguments,too-many-positional-arguments
self._parse_string_array(
name,
separator,
Expand Down

0 comments on commit 793a28d

Please sign in to comment.