Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for SomeCustomClass (0.14 seconds)

  1. tests/test_inherited_custom_class.py

            assert type(asyncpg_uuid) is not uuid.UUID
            with pytest.raises(TypeError):
                vars(asyncpg_uuid)
            return {"fast_uuid": asyncpg_uuid}
    
        class SomeCustomClass(BaseModel):
            model_config = {"arbitrary_types_allowed": True}
    
            a_uuid: MyUuid
    
            @field_serializer("a_uuid")
            def serialize_a_uuid(self, v):
                return str(v)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 1.8K bytes
    - Click Count (0)
Back to Top