Skip to content

Commit

Permalink
hardcode model_schema args
Browse files Browse the repository at this point in the history
  • Loading branch information
zmezei committed Jul 3, 2023
1 parent d5b85f2 commit 9c9b9f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/uagents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ def _restore_descriptions(
Model._restore_descriptions(field.type_, orig_descriptions[field.name])

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

@staticmethod
Expand Down

0 comments on commit 9c9b9f4

Please sign in to comment.