Skip to content

Commit 1372c7b

Browse files
committed
made code optional
1 parent 53ada5a commit 1372c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codetide/parsers/generic_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def parse_file(self, file_path: Union[str, Path], root_path: Optional[Unio
5555

5656
return codeFile
5757

58-
def parse_code(self, file_path :Path, code :str):
58+
def parse_code(self, file_path :Path, code :Optional[str]=None):
5959
codeFile = CodeFileModel(
6060
file_path=str(file_path),
6161
raw=code if not isinstance(code, bytes) else DEFAULT_BYTES_CONTENT_PLACEHOLDERS

0 commit comments

Comments
 (0)