Skip to content

Object of class FunctionType has no attribute return_value [missing-attribute] #4412

Description

@asukaminato0721

Describe the Bug

in pytest env, we can set .return_value to change the return value.

https://github.com/langgenius/dify/pull/39876/changes#diff-11f51968a981aae553847d0824bf7e3f0750f5c1145432e57ec7c55eb727b216L157

But this causes some false positive.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions