chore: adds python3.14 to metadata

This commit is contained in:
2025-12-08 18:56:01 -03:00
parent 00802744dd
commit eee32a02ae
2 changed files with 6 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ from jambo.types import JSONSchema, RefCacheDict
from jsonschema.exceptions import SchemaError
from jsonschema.validators import validator_for
from pydantic import BaseModel
from typing_extensions import Optional
from typing_extensions import MutableMapping, Optional
class SchemaConverter:
@@ -17,8 +17,10 @@ class SchemaConverter:
fields and types. The generated model can be used for data validation and serialization.
"""
_namespace_registry: MutableMapping[str, RefCacheDict]
def __init__(
self, namespace_registry: Optional[dict[str, RefCacheDict]] = None
self, namespace_registry: Optional[MutableMapping[str, RefCacheDict]] = None
) -> None:
if namespace_registry is None:
namespace_registry = dict()
@@ -64,7 +66,7 @@ class SchemaConverter:
:return: The generated Pydantic model.
"""
if ref_cache is None:
ref_cache = dict()
ref_cache: RefCacheDict = dict()
try:
validator = validator_for(schema)