-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flow
Description
Describe the Bug
ERROR Pyrefly detected conflicting types while breaking a dependency cycle: `str | Any | None` is not assignable to `None`. Adding explicit type annotations might possibly help. [bad-assignment]
--> core/rag/extractor/word_extractor.py:336:13
|
336 | / for child in paragraph._element:
337 | | tag = child.tag
338 | | if tag == qn("w:r"):
339 | | # Regular run
340 | | run = Run(child, paragraph)
341 | |
| |__^
|
ERROR Pyrefly detected conflicting types while breaking a dependency cycle: `str | Any | None` is not assignable to `None`. Adding explicit type annotations might possibly help. [bad-assignment]
--> core/rag/extractor/word_extractor.py:357:25
|
357 | / for fld_char in fld_chars:
358 | | fld_char_type = fld_char.get(qn("w:fldCharType"))
359 | | if fld_char_type == "begin":
360 | | # Start of a field: reset legacy link state
361 | | hyperlink_field_url = None
362 | | hyperlink_field_text_parts = []
| |________________________________________________________________^
|
https://github.com/langgenius/dify/tree/main/api
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
0.54.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flow