from typing import Optional
from typing import Callable


def fade_screen(to: int = 0,
                time: float = 0.25,
                endcall: Optional[Callable[[], None]] = None) -> None:
    """fade_screen(to: int = 0, time: float = 0.25,
      endcall: Optional[Callable[[], None]] = None) -> None

    (internal)

    Fade the local game screen in our out from black over a duration of
    time. if "to" is 0, the screen will fade out to black.  Otherwise it
    will fade in from black. If endcall is provided, it will be run after a
    completely faded frame is drawn.
    """
    return None