From e84df112907547987e8854d5b1b3947b6c0fab82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B9=E5=B0=8F=E7=BF=BC?= <75880483+aixcyi@users.noreply.github.com> Date: Sun, 2 Jul 2023 00:38:31 +0800 Subject: [PATCH] Fix an example of Python type hint --- source/_posts/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/python.md b/source/_posts/python.md index 49b281c..83e6aa4 100644 --- a/source/_posts/python.md +++ b/source/_posts/python.md @@ -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")