Skip to content

Commit

Permalink
mrtrix3.app: Pylint fixes for 3.12 compatibility
Browse files Browse the repository at this point in the history
Fixes to 6da0f39.
  • Loading branch information
Lestropie committed Aug 12, 2024
1 parent 6da0f39 commit 1f9d3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mrtrix3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ class Parser(argparse.ArgumentParser):
# which will derive from both pathlib.Path (which itself through __new__() could be Posix or Windows)
# and a desired augmentation that provides additional functions
@staticmethod
def make_userpath_object(base_class, *args, **kwargs):
def make_userpath_object(base_class, *args):
abspath = os.path.normpath(os.path.join(WORKING_DIR, *args))
super_class = pathlib.WindowsPath if os.name == 'nt' else pathlib.PosixPath
new_class = type(f'{base_class.__name__.lstrip("_").rstrip("Extras")}',
Expand All @@ -593,7 +593,7 @@ def make_userpath_object(base_class, *args, **kwargs):
instance = new_class.__new__(new_class, abspath)
else:
instance = new_class.__new__(new_class)
super(super_class, instance).__init__(abspath)
super(super_class, instance).__init__(abspath) # pylint: disable=bad-super-call
return instance

# Classes that extend the functionality of pathlib.Path
Expand Down

0 comments on commit 1f9d3b4

Please sign in to comment.