之前的那玩意似乎会在py3.8崩溃

typing你做的好啊(
This commit is contained in:
shenjack 2022-08-22 23:15:42 +08:00
parent 7ef356c7a6
commit ea13783e87

View File

@ -40,7 +40,7 @@ class Options:
values[option] = getattr(self, option) values[option] = getattr(self, option)
return values return values
def option_with_len(self) -> list[list[Tuple[str, Any, Any]] | int | Any]: def option_with_len(self) -> List[Union[List[Tuple[str, Any, Any]], int, Any]]:
options = self.option() options = self.option()
max_len_key = 1 max_len_key = 1
max_len_value = 1 max_len_value = 1