mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
13 lines
325 B
Python
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: ...
|