INNER CODE UNIT · Python

parsed_type

DogsTailFarmer/martin-binance · martin_binance/backup.py:367

                    parsed_type = eval(type_str, {}, eval_context)  # skipcq: PYL-W0123
                    if "Dict" in type_str or "dict" in type_str:
                        hint_type = Annotated[parsed_type, BeforeValidator(force_dict_validator)]
                    else:
                        hint_type = Annotated[parsed_type, BeforeValidator(force_tuple_validator)]
                except Exception:
                    hint_type = None
            else:
                # noinspection broad-exception
                try:
                    hint_type = eval(type_str, {}, eval_context)  # skipcq: PYL-W0123
                except Exception:
                    hint_type = Any

        if hint_type is None:
            if isinstance(default_value, Orders):
                hint_type = PydanticOrdersField
            elif isinstance(default_value, Decimal):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…