Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _has_computed_fields (0.17 sec)

  1. fastapi/_compat/v2.py

            )
    
        def __hash__(self) -> int:
            # Each ModelField is unique for our purposes, to allow making a dict from
            # ModelField to its JSON Schema.
            return id(self)
    
    
    def _has_computed_fields(field: ModelField) -> bool:
        computed_fields = field._type_adapter.core_schema.get("schema", {}).get(
            "computed_fields", []
        )
        return len(computed_fields) > 0
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
Back to top