Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abeautifulsnow committed Nov 6, 2023
1 parent e7d0c0c commit 86165e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgu.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,27 +342,29 @@ def __exit__(self, exc_type, exc_value, traceback):


class BaseOptions(metaclass=ABCMeta):
__not_implement_msg = "method not implemented"

@abstractmethod
def base_option_single(
self, title: str, options: List[str], name: Optional[str] = None
) -> str:
raise NotImplementedError("method not implemented")
raise NotImplementedError(self.__not_implement_msg)

@abstractmethod
def ifUpgradeModules(self) -> str:
raise NotImplementedError("method not implemented")
raise NotImplementedError(self.__not_implement_msg)

@abstractmethod
def ifUpdateAllModules(self) -> str:
raise NotImplementedError("method not implemented")
raise NotImplementedError(self.__not_implement_msg)

@abstractmethod
def updateOneOfPackages(
self,
packages: List[Tuple[T_NAME, T_VERSION, T_LATEST_VERSION, T_LATEST_FILETYPE]],
# upgrade_func: Callable[[str, str, str], None],
) -> Optional[Tuple[str]]:
raise NotImplementedError("method not implemented")
raise NotImplementedError(self.__not_implement_msg)


class UserOptionsForWindows(BaseOptions):
Expand Down

0 comments on commit 86165e0

Please sign in to comment.