Skip to content

Commit dfe037f

Browse files
Fix formatting issues in unstructured_parser.py
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent 66c6235 commit dfe037f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

airbyte_cdk/sources/file_based/file_types/unstructured_parser.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,11 @@ def _get_filetype(self, file: IOBase, remote_file: RemoteFile) -> Optional[FileT
442442
file.seek(0)
443443
if file_content and isinstance(file_content, bytes):
444444
content_str = file_content.decode("utf-8", errors="ignore")
445-
if (content_str.lstrip().startswith("#") or
446-
remote_file.mime_type == "text/markdown" or
447-
remote_file.uri.endswith(".md")):
445+
if (
446+
content_str.lstrip().startswith("#")
447+
or remote_file.mime_type == "text/markdown"
448+
or remote_file.uri.endswith(".md")
449+
):
448450
type_based_on_content = FileType.MD
449451
else:
450452
type_based_on_content = FileType.UNK

0 commit comments

Comments
 (0)