Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TypeAdapter (0.04 seconds)

  1. fastapi/_compat/v2.py

                    # the old field info metadata and only the rest of the attributes
                    Field(**field_dict["attributes"]),
                )
                self._type_adapter: TypeAdapter[Any] = TypeAdapter(
                    Annotated[annotated_args],  # ty: ignore[invalid-type-form]
                    config=self.config,
                )
    
        def get_default(self) -> Any:
            if self.field_info.is_required():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. fastapi/routing.py

                        )
                        # Use the fast path (dump_json) when no custom response
                        # class was set and a response field with a TypeAdapter
                        # exists. Serializes directly to JSON bytes via Pydantic's
                        # Rust core, skipping the intermediate Python dict +
                        # json.dumps() step.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top