[ty] use __getattribute__ to lookup unknown members on a type by felixscherz · Pull Request #18280 · astral-sh/ruff (original) (raw)

AlexWaygood

AlexWaygood

sharkdp added a commit that referenced this pull request

May 26, 2025

@sharkdp

@felixscherz @sharkdp

Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com

@sharkdp

@sharkdp

@sharkdp

sharkdp added a commit that referenced this pull request

May 26, 2025

Type::member_lookup_with_policy now falls back to calling __getattribute__ when a member cannot be found as a second fallback after __getattr__.

closes astral-sh/ty#441

Added markdown tests.


Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com Co-authored-by: David Peter mail@david-peter.de

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

May 1, 2026

@sharkdp

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 }})