|
76 | 76 |
|
77 | 77 | @runtime_checkable |
78 | 78 | class CustomPayloadType(Protocol): |
79 | | - def prepared(self) -> PreparedPayload: |
80 | | - ... |
| 79 | + def prepared(self) -> PreparedPayload: ... |
81 | 80 |
|
82 | 81 |
|
83 | 82 | JSON = Union[str, int, float, bool, None, Dict[str, "JSON"], List["JSON"]] |
@@ -263,9 +262,9 @@ class versions(APIEndpointsDecorator): |
263 | 262 | Logs warning or raises exception when incompatibility found during runtime. |
264 | 263 | """ |
265 | 264 |
|
266 | | - versions_lookup: ClassVar[ |
267 | | - Dict[str, SpecifierSet] |
268 | | - ] = {} # maps decorated method instance to it's supported verisions |
| 265 | + versions_lookup: ClassVar[Dict[str, SpecifierSet]] = ( |
| 266 | + {} |
| 267 | + ) # maps decorated method instance to it's supported verisions |
269 | 268 |
|
270 | 269 | def __init__(self, supported_versions: str, raises: bool = False): |
271 | 270 | self.supported_versions = SpecifierSet(supported_versions) |
@@ -355,9 +354,9 @@ class request(APIEndpointsDecorator): |
355 | 354 | """ |
356 | 355 |
|
357 | 356 | forbidden_url_field_names = {"self", "payload", "params"} |
358 | | - request_lookup: ClassVar[ |
359 | | - Dict[str, APIEndpointRequestMeta] |
360 | | - ] = {} # maps decorated method instance to it's meta information |
| 357 | + request_lookup: ClassVar[Dict[str, APIEndpointRequestMeta]] = ( |
| 358 | + {} |
| 359 | + ) # maps decorated method instance to it's meta information |
361 | 360 |
|
362 | 361 | def __init__(self, http_method: str, url: str, resp_json_key: Optional[str] = None, **kwargs): |
363 | 362 | self.http_method = http_method |
|
0 commit comments