Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_cached_model_fields (0.13 sec)

  1. tests/test_compat.py

        class Model(BaseModel):
            foo: str
    
        non_cached_fields = get_model_fields(Model)
        non_cached_fields2 = get_model_fields(Model)
        cached_fields = get_cached_model_fields(Model)
        cached_fields2 = get_cached_model_fields(Model)
        for f1, f2 in zip(cached_fields, cached_fields2):
            assert f1 is f2
    
        assert non_cached_fields is not non_cached_fields2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 11 07:45:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top