Skip to content

Commit c4d3037

Browse files
committed
mypy type fix
1 parent 1a034e5 commit c4d3037

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

agentstack/frameworks/crewai.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ def {task.name}(self) -> Task:
5656
config=self.tasks_config['{task.name}'],
5757
)"""
5858

59-
if not self.source[:pos].endswith('\n'):
60-
code = '\n\n' + code
61-
if not self.source[pos:].startswith('\n'):
62-
code += '\n\n'
63-
self.edit_node_range(pos, pos, code)
64-
6559
def get_new_agent_method(self, agent: AgentConfig) -> str:
6660
"""Get the content of a new agent method."""
6761
return f""" @agent
@@ -72,12 +66,6 @@ def {agent.name}(self) -> Agent:
7266
verbose=True,
7367
)"""
7468

75-
if not self.source[:pos].endswith('\n'):
76-
code = '\n\n' + code
77-
if not self.source[pos:].startswith('\n'):
78-
code += '\n\n'
79-
self.edit_node_range(pos, pos, code)
80-
8169
def get_agent_tools(self, agent_name: str) -> ast.List:
8270
"""
8371
Get the list of tools used by an agent as an AST List node.

0 commit comments

Comments
 (0)