[ty] Pydantic: Make `BaseSettings` fields optional by default (#26628)
## Summary
`BaseSettings` fields can be supplied via environment variables. To
support this use case, we make all fields on these models optional by
default.
```py
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
host: str
port: int
# Would succeed at runtime if HOST and PORT environment variables are set
Settings()
```
closes https://github.com/astral-sh/ty/issues/1070
towards https://github.com/astral-sh/ty/issues/2403
## Test Plan
Updated existing Markdown tests