Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Oct 21, 2024
1 parent ba4bfae commit 5f5f3c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/language_client_python/src/types/media_repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ impl TryInto<UserFacingBamlMedia> for &BamlMedia {
/// - allows constructing Pydantic models containing a BamlImagePy instance
/// - allows FastAPI requests to deserialize BamlImagePy instances in JSON format
/// - allows serializing BamlImagePy instances in JSON format
///
/// Ideally this belongs in baml_py.internal_monkeypatch, so that we can get
/// ruff-based type checking, but this depends on the pydantic libraries, so we
/// can't implement this in internal_monkeypatch without adding a hard dependency
/// on pydantic. And we don't want to do _that_, because that will make it harder
/// to implement output_type python/vanilla in the future.
pub fn __get_pydantic_core_schema__(
_cls: Bound<'_, PyType>,
_source_type: Bound<'_, PyAny>,
Expand Down

0 comments on commit 5f5f3c4

Please sign in to comment.