U kf @sUddlmZddlZddlmZddlmZddlmZddlmZddlmZej rd d l m Z d d l m Z d d l m Z d d l mZdZded<dddddZdddddZdS)) annotationsN)Any)Mapping)Optional)Tuple)exc)_CoreAnyExecuteParams)_CoreMultiExecuteParams)_DBAPIAnyExecuteParams)_DBAPIMultiExecuteParamszTuple[Any, ...] _no_tuplezOptional[_CoreAnyExecuteParams]r )paramsreturncCsl|dkr tSt|ts t|trD|r@t|dttfs@td|St|tsXt|tr^|gStddS)Nr9List argument must consist only of tuples or dictionariesz'mapping or list expected for parametersr isinstancelisttuplerr ArgumentErrordictrrrJ/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/engine/_py_util.py_distill_params_20s rz Optional[_DBAPIAnyExecuteParams]r cCsf|dkr tSt|tr:|r6t|dttfs6td|St|ttfsRt|trX|gStddS)Nrrz+mapping or sequence expected for parametersrrrrr_distill_raw_params4s r) __future__rtypingrrrrr TYPE_CHECKINGZ interfacesr r r r r__annotations__rrrrrrs