[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-22 18:16:21 +00:00
parent dd428e9788
commit fb379a85af
+6 -12
View File
@@ -36,24 +36,18 @@ class Parser(object):
self._EXCLUDED.append(name) self._EXCLUDED.append(name)
def get_excluded_patches(self) -> List[str]: def get_excluded_patches(self) -> List[str]:
""" """Getter to get all excluded patches :return: List of excluded
Getter to get all excluded patches patches."""
:return: List of excluded patches
"""
return self._EXCLUDED return self._EXCLUDED
def get_all_patches(self) -> List[str]: def get_all_patches(self) -> List[str]:
""" """Getter to get all excluded patches :return: List of excluded
Getter to get all excluded patches patches."""
:return: List of excluded patches
"""
return self._PATCHES return self._PATCHES
def invert_patch(self, name: str) -> bool: def invert_patch(self, name: str) -> bool:
""" """Getter to get all excluded patches :return: List of excluded
Getter to get all excluded patches patches."""
:return: List of excluded patches
"""
try: try:
patch_index = self._PATCHES.index(name) patch_index = self._PATCHES.index(name)
if self._PATCHES[patch_index - 1] == "-e": if self._PATCHES[patch_index - 1] == "-e":