Skip to content

Commit

Permalink
Fix multiple inheritance case for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Apr 9, 2024
1 parent dc181bc commit fe9a84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sos/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ class file_target(path, BaseTarget):

def __init__(self, *args, **kwargs):
# this is path segments
super().__init__(*args, **kwargs)
path.__init__(self, *args, **kwargs)
BaseTarget.__init__(self, *args, **kwargs)
if len(args) == 1 and isinstance(args[0], file_target):
self._md5 = args[0]._md5 if hasattr(args[0], '_md5') else None
else:
Expand Down

0 comments on commit fe9a84e

Please sign in to comment.