We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 981cded + 86ecf52 commit deefba2Copy full SHA for deefba2
agentstack/frameworks/crewai.py
@@ -19,6 +19,15 @@ class CrewFile(asttools.File):
19
20
_base_class: Optional[ast.ClassDef] = None
21
22
+ def write(self):
23
+ """
24
+ Early versions of the crew entrypoint file used tabs instead of spaces.
25
+ This method replaces all tabs with 4 spaces before writing the file to
26
+ avoid SyntaxErrors.
27
28
+ self.source = self.source.replace('\t', ' ')
29
+ super().write()
30
+
31
def get_base_class(self) -> ast.ClassDef:
32
"""A base class is a class decorated with `@CrewBase`."""
33
if self._base_class is None: # Gets cached to save repeat iteration
0 commit comments