Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rubyclass (0.19 sec)

  1. tests/test_jsonable_encoder.py

            pass
    
        model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
        assert jsonable_encoder(model) == {"dt_field": "2019-01-01T08:00:00+00:00"}
        subclass_model = ModelWithCustomEncoderSubclass(dt_field=datetime(2019, 1, 1, 8))
        assert jsonable_encoder(subclass_model) == {"dt_field": "2019-01-01T08:00:00+00:00"}
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. fastapi/routing.py

                # as is just because it's an instance of a subclass of a more limited class
                # e.g. UserInDB (containing hashed_password) could be a subclass of User
                # that doesn't have the hashed_password. But because it's a subclass, it
                # would pass the validation and be returned as is.
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top