Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
zmezei committed Jul 5, 2023
1 parent f942268 commit 9860db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uagents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _restore_descriptions(
Model._restore_descriptions(field.type_, orig_descriptions[field_name])

@staticmethod
def _refresh_schema_cache(model: Type["Model"]):
def _restore_schema_cache(model: Type["Model"]):
schema = model_schema(model, by_alias=True, ref_template=default_ref_template)
model.__schema_cache__[(True, default_ref_template)] = schema

Expand All @@ -55,7 +55,7 @@ def build_schema_digest(model: Union["Model", Type["Model"]]) -> str:
if type_obj.schema_no_descriptions is None:
type_obj.schema_no_descriptions = type_obj.schema()
Model._restore_descriptions(type_obj, orig_descriptions)
Model._refresh_schema_cache(type_obj)
Model._restore_schema_cache(type_obj)
return f"model:{digest}"


Expand Down

0 comments on commit 9860db3

Please sign in to comment.