[ty] Emit invalid-named-tuple on namedtuple classes that have field names starting with underscores by AlexWaygood · Pull Request #21697 · astral-sh/ruff (original) (raw)

@AlexWaygood added the ty

Multi-file analysis & type inference

label

Nov 29, 2025

@AlexWaygood AlexWaygood changed the title[ty] Emit invalid-namedtuple on namedtuple classes that have field names starting with leading underscrores [ty] Emit invalid-namedtuple on namedtuple classes that have field names starting with leading underscores

Nov 29, 2025

@AlexWaygood AlexWaygood changed the title[ty] Emit invalid-namedtuple on namedtuple classes that have field names starting with leading underscores [ty] Emit invalid-namedtuple on namedtuple classes that have field names starting with underscores

Nov 29, 2025

@AlexWaygood AlexWaygood changed the title[ty] Emit invalid-namedtuple on namedtuple classes that have field names starting with underscores [ty] Emit invalid-named-tuple on namedtuple classes that have field names starting with underscores

Nov 29, 2025

charliermarsh

charliermarsh

@AlexWaygood

…ting with leading underscrores

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