Coverage for faststream / specification / base / info.py: 70%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-08 01:48 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-08 01:48 +0000
1from pydantic import BaseModel
3from faststream._internal._compat import PYDANTIC_V2
6class BaseApplicationInfo(BaseModel):
7 """A class to represent basic application information.
9 Attributes:
10 title : application title
11 version : application version
12 description : application description
13 """
15 title: str
16 version: str
17 description: str | None = None
19 if PYDANTIC_V2: 19 ↛ 24line 19 didn't jump to line 24 because the condition on line 19 was always true
20 model_config = {"extra": "allow"}
22 else:
24 class Config:
25 extra = "allow"