Files
typeshed/stdlib/3/functools.pyi
2015-11-09 13:55:02 -08:00

13 lines
325 B
Python

# Stubs for functools
# NOTE: These are incomplete!
from typing import Callable, Any, Optional
# TODO implement as class; more precise typing
# TODO cache_info and __wrapped__ attributes
def lru_cache(maxsize: Optional[int] = ...) -> Callable[[Any], Any]: ...
# TODO more precise typing?
def wraps(func: Any) -> Any: ...