diff options
Diffstat (limited to 'doc/data/messages/c/comparison-with-callable')
-rw-r--r-- | doc/data/messages/c/comparison-with-callable/bad.py | 1 | ||||
-rw-r--r-- | doc/data/messages/c/comparison-with-callable/good.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/data/messages/c/comparison-with-callable/bad.py b/doc/data/messages/c/comparison-with-callable/bad.py index 9dc5ecd92..1dbdad07c 100644 --- a/doc/data/messages/c/comparison-with-callable/bad.py +++ b/doc/data/messages/c/comparison-with-callable/bad.py @@ -1,6 +1,7 @@ def function_returning_a_fruit() -> str: return "orange" + def is_an_orange(fruit: str = "apple"): # apple == <function function_returning_a_fruit at 0x7f343ff0a1f0> return fruit == function_returning_a_fruit # [comparison-with-callable] diff --git a/doc/data/messages/c/comparison-with-callable/good.py b/doc/data/messages/c/comparison-with-callable/good.py index 587cf1b98..a49007128 100644 --- a/doc/data/messages/c/comparison-with-callable/good.py +++ b/doc/data/messages/c/comparison-with-callable/good.py @@ -1,6 +1,7 @@ def function_returning_a_fruit() -> str: return "orange" + def is_an_orange(fruit: str = "apple"): # apple == orange return fruit == function_returning_a_fruit() |