mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
13 lines
402 B
Python
13 lines
402 B
Python
import unittest.result
|
|
from typing import Any, Callable, TypeVar, overload
|
|
|
|
_F = TypeVar("_F", bound=Callable[..., Any])
|
|
|
|
def installHandler() -> None: ...
|
|
def registerResult(result: unittest.result.TestResult) -> None: ...
|
|
def removeResult(result: unittest.result.TestResult) -> bool: ...
|
|
@overload
|
|
def removeHandler(method: None = ...) -> None: ...
|
|
@overload
|
|
def removeHandler(method: _F) -> _F: ...
|