ruff
Optimize some `SemanticModel` methods
#13091
Merged

Loading