mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-04 14:39:23 +00:00
fix: add type annotations to model_post_init for mypy
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user