Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions optype/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def get_protocol_members(cls: type, /) -> frozenset[str]:
callable(f := getattr(v, "__func__", v))
or (isinstance(v, property) and (f := v.fget) is not None)
)
# facebook/pyrefly#913
and f.__module__ == module # pyrefly: ignore[unbound-name]
and f.__module__ == module
}

# this hack here is plagiarized from the (often incorrect)
Expand Down