Skip to content

Commit

Permalink
Fix cache with pydantic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
moria97 committed Aug 15, 2024
1 parent d328551 commit 4aab69f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kink/inject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import functools
import sys
from abc import ABC
from functools import wraps
Expand Down Expand Up @@ -53,6 +54,9 @@ def __init__(self, name: str, type: Any = Any, default: Any = Undefined):
def _inspect_function_arguments(
function: Callable,
) -> Tuple[Tuple[str, ...], Dict[str, Parameter]]:
if isinstance(function, functools._lru_cache_wrapper):
function = function.__wrapped__

parameters_name: Tuple[str, ...] = tuple(signature(function).parameters.keys())
parameters = {}

Expand Down

0 comments on commit 4aab69f

Please sign in to comment.