mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
Fix an example of Python type hint
This commit is contained in:
1 parent
31497f8fcb
commit
e84df11290
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user