Files
typeshed/stdlib/3/functools.pyi
2015-09-30 09:59:44 -07: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] = 100) -> Callable[[Any], Any]: ...
# TODO more precise typing?
def wraps(func: Any) -> Any: ...