fix: add type annotations to model_post_init for mypy

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-06-11 19:32:28 +00:00
parent 1b1639b862
commit 060333c3ed

View File

@@ -10,7 +10,7 @@ import os
from pathlib import Path
import tempfile
import threading
from typing import Literal
from typing import Any, Literal
import uuid
import aiofiles
@@ -46,8 +46,8 @@ class JsonProvider(BaseProvider):
provider_type: Literal["json"] = "json"
def __init__(self, **kwargs):
super().__init__(**kwargs)
def model_post_init(self, __context: Any) -> None:
super().model_post_init(__context)
self._lock = threading.Lock()
self._async_lock = asyncio.Lock()