Skip to content

Commit f5924e3

Browse files
authored
Update create_file to return TSourceFile (#219)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed - [ ] I have read and agree to the [Contributor License Agreement](/codegen-sh/codegen-sdk/blob/develop/CLA.md)
1 parent ea3df49 commit f5924e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/sdk/core/codebase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def types(self) -> list[TTypeAlias]:
391391
# EXTERNAL API
392392
####################################################################################################################
393393

394-
def create_file(self, filepath: str, content: str = "", sync: bool = True) -> File:
394+
def create_file(self, filepath: str, content: str = "", sync: bool = True) -> TSourceFile:
395395
"""Creates a new file in the codebase with specified content.
396396
397397
Args:

0 commit comments

Comments
 (0)