[ty] Pydantic: Ignore private attributes (#26630)
## Summary
Underscore-prefixed attributes are considered private and do not become
fields in Pydantic models:
```py
class Person(BaseModel):
name: str
_implicit_private: int
Person(name="Alice") # okay
```
## Test Plan
Updated tests