[ty] Respect MRO_NO_OBJECT_FALLBACK policy when looking up symbols on type instances by sharkdp · Pull Request #18312 · astral-sh/ruff (original) (raw)

@sharkdp added the ty

Multi-file analysis & type inference

label

May 26, 2025

@sharkdp sharkdp changed the title[ty] Respect MRO_NO_OBJECT_FALLBACK policy when looking up symbols on… [ty] Respect MRO_NO_OBJECT_FALLBACK policy when looking up symbols on type instances

May 26, 2025

sharkdp added a commit that referenced this pull request

May 26, 2025

@sharkdp

…18313)

Summary

Fix a bug that involved writes to attributes on union/intersection types that included modules as elements.

This is a prerequisite to avoid some ecosystem false positives in #18312

Test Plan

Added regression test

@sharkdp

@sharkdp sharkdp marked this pull request as ready for review

May 26, 2025 10:01

@sharkdp sharkdp deleted the david/no-object-fallback branch

May 26, 2025 10:03

KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request

May 1, 2026

@sharkdp

…#18313)

Summary

Fix a bug that involved writes to attributes on union/intersection types that included modules as elements.

This is a prerequisite to avoid some ecosystem false positives in astral-sh/ruff#18312

Test Plan

Added regression test

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})