From 9e52783b22199c2986c5fc5e7fd888f316e7c463 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Mon, 2 Jun 2025 20:41:50 -0300 Subject: [PATCH] Fixes Typing Output --- jambo/schema_converter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jambo/schema_converter.py b/jambo/schema_converter.py index 728a2a2..5254760 100644 --- a/jambo/schema_converter.py +++ b/jambo/schema_converter.py @@ -18,7 +18,7 @@ class SchemaConverter: """ @staticmethod - def build(schema: JSONSchema) -> ModelT: + def build(schema: JSONSchema) -> type[ModelT]: """ Converts a JSON Schema to a Pydantic model. :param schema: The JSON Schema to convert. @@ -33,7 +33,7 @@ class SchemaConverter: def build_object( name: str, schema: JSONSchema, - ) -> ModelT: + ) -> type[ModelT]: """ Converts a JSON Schema object to a Pydantic model given a name. :param name: @@ -59,7 +59,7 @@ class SchemaConverter: @staticmethod def _build_model_from_properties( model_name: str, model_properties: dict, required_keys: list[str] - ) -> ModelT: + ) -> type[ModelT]: properties = SchemaConverter._parse_properties(model_properties, required_keys) return create_model(model_name, **properties) -- 2.49.1