Fix an example of Python type hint

This commit is contained in:
砹小翼 committed 2023-07-02 00:38:31 +08:00
1 parent 31497f8fcb
commit e84df11290
1 file changed
+1 -1
+1 -1
View File
@@ -1455,7 +1455,7 @@ def converter(raw, mapper: Callable[[Any], T], default: T) -> T:
# Callable[[Any], T] means a function declare like:
# def anynomous(arg: Any) -> T:
# return T(arg)
# pass
def is_success(value) -> bool:
return value in (0, "OK", True, "success")