79322354

Date: 2025-01-01 21:39:04
Score: 0.5
Natty:
Report link

reveal_type is a MyPy-specific construct for debugging types and isn't part of PEP 484. You should define a reusable type alias instead.

from typing import Callable

# Define the type alias
MyCallback = Callable[[int], bool]

# Your function definitions
def stream(b: int, f: MyCallback) -> bool:
    return f(b)
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: SukiCZ