|
235 | 235 | from pybotx.models.bot_catalog import BotsListItem |
236 | 236 | from pybotx.models.chats import ChatInfo, ChatListItem |
237 | 237 | from pybotx.models.commands import ( |
238 | | - BotAPICommand, |
239 | 238 | BotAPISystemEvent, |
240 | 239 | BotAPIIncomingMessage, |
241 | 240 | BotCommand, |
@@ -322,7 +321,9 @@ def async_execute_raw_bot_command( |
322 | 321 | if command_type == BotAPICommandTypes.USER: |
323 | 322 | bot_api_command = BotAPIIncomingMessage.model_validate(raw_bot_command) |
324 | 323 | else: |
325 | | - bot_api_command = TypeAdapter(BotAPISystemEvent).validate_python(raw_bot_command) |
| 324 | + bot_api_command = TypeAdapter(BotAPISystemEvent).validate_python( |
| 325 | + raw_bot_command |
| 326 | + ) |
326 | 327 | except ValidationError as validation_exc: |
327 | 328 | raise ValueError("Bot command validation error") from validation_exc |
328 | 329 |
|
@@ -393,7 +394,9 @@ async def raw_get_status( |
393 | 394 | self._verify_request(request_headers, trusted_issuers=trusted_issuers) |
394 | 395 |
|
395 | 396 | try: |
396 | | - bot_api_status_recipient = BotAPIStatusRecipient.model_validate(query_params) |
| 397 | + bot_api_status_recipient = BotAPIStatusRecipient.model_validate( |
| 398 | + query_params |
| 399 | + ) |
397 | 400 | except ValidationError as exc: |
398 | 401 | raise ValueError("Status request validation error") from exc |
399 | 402 |
|
@@ -551,7 +554,7 @@ async def answer_message( |
551 | 554 | :return: Notification sync_id. |
552 | 555 | """ |
553 | 556 |
|
554 | | - try: # noqa: WPS229 |
| 557 | + try: |
555 | 558 | bot_id = bot_id_var.get() |
556 | 559 | chat_id = chat_id_var.get() |
557 | 560 | except LookupError as exc: |
@@ -2069,7 +2072,7 @@ async def collect_metric( |
2069 | 2072 | ) |
2070 | 2073 | await method.execute(payload) |
2071 | 2074 |
|
2072 | | - def _verify_request( # noqa: WPS231, WPS238 |
| 2075 | + def _verify_request( |
2073 | 2076 | self, |
2074 | 2077 | headers: Optional[Mapping[str, str]], |
2075 | 2078 | *, |
|
0 commit comments