blob: 1dbdad07c7767c70fab9f772cc76056084ee8277 (
plain)
1
2
3
4
5
6
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]
|