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

1from pydantic import BaseModel 

2 

3from faststream._internal._compat import PYDANTIC_V2 

4 

5 

6class BaseApplicationInfo(BaseModel): 

7 """A class to represent basic application information. 

8 

9 Attributes: 

10 title : application title 

11 version : application version 

12 description : application description 

13 """ 

14 

15 title: str 

16 version: str 

17 description: str | None = None 

18 

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"} 

21 

22 else: 

23 

24 class Config: 

25 extra = "allow"