mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
cutting new version with no yaml parsing
This commit is contained in:
@@ -5,7 +5,6 @@ from pathlib import Path
|
||||
import yaml
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from crewai.utilities.parser import YamlParser
|
||||
|
||||
load_dotenv()
|
||||
|
||||
@@ -46,7 +45,7 @@ def CrewBase(cls):
|
||||
@staticmethod
|
||||
def load_yaml(config_path: str):
|
||||
with open(config_path, "r") as file:
|
||||
parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser"
|
||||
return yaml.safe_load(parsedContent)
|
||||
# parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser"
|
||||
return yaml.safe_load(file)
|
||||
|
||||
return WrappedClass
|
||||
|
||||
Reference in New Issue
Block a user