|
1 | 1 | """Contains methods for accessing the API""" |
2 | 2 |
|
3 | | -from typing import Type |
4 | | - |
5 | 3 | from .bodies import BodiesEndpoints |
6 | 4 | from .config import ConfigEndpoints |
7 | 5 | from .default import DefaultEndpoints |
|
19 | 17 |
|
20 | 18 | class MyTestApiClientApi: |
21 | 19 | @classmethod |
22 | | - def bodies(cls) -> Type[BodiesEndpoints]: |
| 20 | + def bodies(cls) -> type[BodiesEndpoints]: |
23 | 21 | return BodiesEndpoints |
24 | 22 |
|
25 | 23 | @classmethod |
26 | | - def tests(cls) -> Type[TestsEndpoints]: |
| 24 | + def tests(cls) -> type[TestsEndpoints]: |
27 | 25 | return TestsEndpoints |
28 | 26 |
|
29 | 27 | @classmethod |
30 | | - def defaults(cls) -> Type[DefaultsEndpoints]: |
| 28 | + def defaults(cls) -> type[DefaultsEndpoints]: |
31 | 29 | return DefaultsEndpoints |
32 | 30 |
|
33 | 31 | @classmethod |
34 | | - def enums(cls) -> Type[EnumsEndpoints]: |
| 32 | + def enums(cls) -> type[EnumsEndpoints]: |
35 | 33 | return EnumsEndpoints |
36 | 34 |
|
37 | 35 | @classmethod |
38 | | - def responses(cls) -> Type[ResponsesEndpoints]: |
| 36 | + def responses(cls) -> type[ResponsesEndpoints]: |
39 | 37 | return ResponsesEndpoints |
40 | 38 |
|
41 | 39 | @classmethod |
42 | | - def default(cls) -> Type[DefaultEndpoints]: |
| 40 | + def default(cls) -> type[DefaultEndpoints]: |
43 | 41 | return DefaultEndpoints |
44 | 42 |
|
45 | 43 | @classmethod |
46 | | - def parameters(cls) -> Type[ParametersEndpoints]: |
| 44 | + def parameters(cls) -> type[ParametersEndpoints]: |
47 | 45 | return ParametersEndpoints |
48 | 46 |
|
49 | 47 | @classmethod |
50 | | - def tag1(cls) -> Type[Tag1Endpoints]: |
| 48 | + def tag1(cls) -> type[Tag1Endpoints]: |
51 | 49 | return Tag1Endpoints |
52 | 50 |
|
53 | 51 | @classmethod |
54 | | - def location(cls) -> Type[LocationEndpoints]: |
| 52 | + def location(cls) -> type[LocationEndpoints]: |
55 | 53 | return LocationEndpoints |
56 | 54 |
|
57 | 55 | @classmethod |
58 | | - def true_(cls) -> Type[True_Endpoints]: |
| 56 | + def true_(cls) -> type[True_Endpoints]: |
59 | 57 | return True_Endpoints |
60 | 58 |
|
61 | 59 | @classmethod |
62 | | - def naming(cls) -> Type[NamingEndpoints]: |
| 60 | + def naming(cls) -> type[NamingEndpoints]: |
63 | 61 | return NamingEndpoints |
64 | 62 |
|
65 | 63 | @classmethod |
66 | | - def parameter_references(cls) -> Type[ParameterReferencesEndpoints]: |
| 64 | + def parameter_references(cls) -> type[ParameterReferencesEndpoints]: |
67 | 65 | return ParameterReferencesEndpoints |
68 | 66 |
|
69 | 67 | @classmethod |
70 | | - def config(cls) -> Type[ConfigEndpoints]: |
| 68 | + def config(cls) -> type[ConfigEndpoints]: |
71 | 69 | return ConfigEndpoints |
0 commit comments