Skip to content

ERROR Pyrefly detected conflicting types while breaking a dependency cycle #2553

Closed

Description

@asukaminato0721

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

Activity

  1. asukaminato0721 commented on Feb 25, 2026

    @asukaminato0721
    CollaboratorAuthor

    maybe @stroxler

  2. self-assigned this
    on Mar 2, 2026
  3. github-actions commented on Mar 18, 2026

    @github-actions

    This issue has someone assigned, but has not had recent activity for more than 2 weeks.

    If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.

    Thank you for your contributions!

  4. rchen152 commented on Jun 13, 2026

    @rchen152
    Contributor

    Pretty sure this is fixed; the cycle breaking error was deleted entirely recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions