from typing import Final
from pydantic import RootModel
class Model(RootModel[str]):
a: Final = 1 # Unexpected field with name a; only 'root' is allowed as a field of a `RootModel`
Final
with a default is not a field, it's an attribute
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too