Skip to content

Commit

Permalink
mavftp: fix pylint issues on python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Oct 3, 2024
1 parent 6019cfe commit 33f7c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mavftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __setattr__(self, name, value):

class MAVFTPReturn:
"""The result of a MAVFTP operation."""
def __init__(self, operation_name: str, error_code: int, system_error: int=0, # pylint: disable=too-many-arguments
def __init__(self, operation_name: str, error_code: int, system_error: int=0, # pylint: disable=too-many-arguments, too-many-positional-arguments
invalid_error_code: int=0, invalid_opcode: int=0, invalid_payload_size: int=0):
self.operation_name = operation_name
self.error_code = error_code
Expand Down Expand Up @@ -1329,7 +1329,7 @@ def save_params(pdict: Dict[str, Tuple[float, str]], filename: str, sort_type: s
logging.info("Outputted %u parameters to %s", len(pdict), filename)


def cmd_getparams(self, args, progress_callback=None, sort_type: str="missionplanner", # pylint: disable=too-many-arguments
def cmd_getparams(self, args, progress_callback=None, sort_type: str="missionplanner", # pylint: disable=too-many-arguments, too-many-positional-arguments
add_datatype_comments: bool=False, add_timestamp_comment: bool=False):
''' Decode the parameter file and save the values and defaults to disk '''

Expand Down
2 changes: 1 addition & 1 deletion mavftp_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

class FTP_OP: # pylint: disable=invalid-name
"""FTP operation"""
def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
seq: int,
session: int,
Expand Down

0 comments on commit 33f7c20

Please sign in to comment.