changed staticmethods to classmethods

This commit is contained in:
SolitudePy
2025-09-17 02:02:14 +03:00
parent 22ea3d5542
commit 156ca005de
@@ -38,8 +38,8 @@ class PebMasquerade(interfaces.plugins.PluginInterface):
),
]
@staticmethod
def _get_cmdline_image(cmdline: str) -> Union[str, PureWindowsPath]:
@classmethod
def _get_cmdline_image(cls, cmdline: str) -> Union[str, PureWindowsPath]:
"""Extract the executable path from a command line string.
Args:
@@ -71,8 +71,10 @@ class PebMasquerade(interfaces.plugins.PluginInterface):
return ""
@staticmethod
def _are_paths_equal(device_path: str, drive_path: str) -> Tuple[bool, str, str]:
@classmethod
def _are_paths_equal(
cls, device_path: str, drive_path: str
) -> Tuple[bool, str, str]:
"""Compare two paths to see if they are equal, ignoring drive/device root and case.
Args: