mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
fix typing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from functools import wraps
|
||||
from typing import Callable, Optional, ParamSpec, TypeVar, overload
|
||||
from typing import Any, Callable, Optional, ParamSpec, TypeVar, overload
|
||||
|
||||
from pydantic.validate_call import validate_call
|
||||
|
||||
@@ -20,7 +20,7 @@ def validate(**dec_kwargs) -> Callable[P, R]:
|
||||
def validate(
|
||||
func: Optional[Callable[P, R]] = None,
|
||||
**dec_kwargs,
|
||||
) -> Optional[Callable]:
|
||||
) -> Any:
|
||||
"""Validate function calls."""
|
||||
|
||||
def decorated(f):
|
||||
|
||||
Reference in New Issue
Block a user