L iTVddlmZddlZddlmZmZddZed ddZy) ) annotationsN)AnyCallablecHtj|}||jvS)zBReturns whether or not the given function has a specific parameter)inspect signature parameters)funcarg_namesigs b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/anthropic/_utils/_reflection.pyfunction_has_argumentrs!   D !C s~~ %%)exclude_paramsc tj|}tj|}g}|jjD]\}}||vr |jj |}|s|j d|d>|j |j k7sX|j d|dt|j dt|j |r)tt|ddj|zy) zCEnsure that the signature of the second function matches the first.zthe `z` param is missingztypes for the `z!` param are do not match; source=z checking=z0 errors encountered when comparing signatures: z N) rrr itemsgetappend annotationreprAssertionErrorlenjoin) source_func check_funcr check_sig source_sigerrorsname source_param custom_params r assert_signatures_in_syncr" s*!!*-I"";/JF(3399; l > !  ++//5  MME$'9: ;   " "l&=&= = MM!$'HlNeNeIfHggqrvxDxOxOsPrQR   F },^_bhbmbmntbuuvvr)r Callable[..., Any]r strreturnbool)rr#rr#rzset[str]r%None) __future__rrtypingrrrsetr"rr r,sH" & #u w#w"w w  wr