- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for hasattr (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
fastapi/_compat/shared.py
return field_annotation_is_complex(get_args(annotation)[0]) return ( _annotation_is_complex(annotation) or _annotation_is_complex(origin) or hasattr(origin, "__pydantic_core_schema__") or hasattr(origin, "__get_pydantic_core_schema__") ) def field_annotation_is_scalar(annotation: Any) -> bool: # handle Ellipsis here to make tuple[int, ...] work nicely
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.9K bytes - Click Count (0) -
fastapi/routing.py
if item.raw_data is not None: data_str: str | None = item.raw_data elif item.data is not None: if hasattr(item.data, "model_dump_json"): data_str = item.data.model_dump_json() else: data_str = json.dumps(jsonable_encoder(item.data))Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0)