之前的那玩意似乎会在py3.8崩溃
typing你做的好啊(
This commit is contained in:
parent
7ef356c7a6
commit
ea13783e87
@ -40,7 +40,7 @@ class Options:
|
||||
values[option] = getattr(self, option)
|
||||
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()
|
||||
max_len_key = 1
|
||||
max_len_value = 1
|
||||
|
Loading…
Reference in New Issue
Block a user