diff --git a/moatless/completion/model.py b/moatless/completion/model.py index 61d56a25..7181df4c 100644 --- a/moatless/completion/model.py +++ b/moatless/completion/model.py @@ -1,7 +1,7 @@ import hashlib import json import logging -from typing import Optional, Any, Union, Self +from typing import Optional, Any, Union import litellm from instructor import OpenAISchema @@ -185,7 +185,7 @@ def model_validate_json( cls, json_data: str | bytes | bytearray, **kwarg, - ) -> Self: + ): if not json_data: raise ValidationError("Message is empty")