mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Bump dev dependencies (#1512)
* Bump dev dependencies * Pre-commit py3.8 support * Pre-commit py3.8 support (v3.5+) * Mute mypy python version bug
This commit is contained in:
parent
0df95a0276
commit
7760ab1d0d
20 changed files with 92 additions and 75 deletions
|
|
@ -13,9 +13,9 @@ class BotCommandScopeAllChatAdministrators(BotCommandScope):
|
|||
Source: https://core.telegram.org/bots/api#botcommandscopeallchatadministrators
|
||||
"""
|
||||
|
||||
type: Literal[
|
||||
type: Literal[BotCommandScopeType.ALL_CHAT_ADMINISTRATORS] = (
|
||||
BotCommandScopeType.ALL_CHAT_ADMINISTRATORS
|
||||
] = BotCommandScopeType.ALL_CHAT_ADMINISTRATORS
|
||||
)
|
||||
"""Scope type, must be *all_chat_administrators*"""
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ class BotCommandScopeChatAdministrators(BotCommandScope):
|
|||
Source: https://core.telegram.org/bots/api#botcommandscopechatadministrators
|
||||
"""
|
||||
|
||||
type: Literal[
|
||||
type: Literal[BotCommandScopeType.CHAT_ADMINISTRATORS] = (
|
||||
BotCommandScopeType.CHAT_ADMINISTRATORS
|
||||
] = BotCommandScopeType.CHAT_ADMINISTRATORS
|
||||
)
|
||||
"""Scope type, must be *chat_administrators*"""
|
||||
chat_id: Union[int, str]
|
||||
"""Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)"""
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ class PassportElementErrorTranslationFile(PassportElementError):
|
|||
Source: https://core.telegram.org/bots/api#passportelementerrortranslationfile
|
||||
"""
|
||||
|
||||
source: Literal[
|
||||
source: Literal[PassportElementErrorType.TRANSLATION_FILE] = (
|
||||
PassportElementErrorType.TRANSLATION_FILE
|
||||
] = PassportElementErrorType.TRANSLATION_FILE
|
||||
)
|
||||
"""Error source, must be *translation_file*"""
|
||||
type: str
|
||||
"""Type of element of the user's Telegram Passport which has the issue, one of 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration', 'temporary_registration'"""
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ class PassportElementErrorTranslationFiles(PassportElementError):
|
|||
Source: https://core.telegram.org/bots/api#passportelementerrortranslationfiles
|
||||
"""
|
||||
|
||||
source: Literal[
|
||||
source: Literal[PassportElementErrorType.TRANSLATION_FILES] = (
|
||||
PassportElementErrorType.TRANSLATION_FILES
|
||||
] = PassportElementErrorType.TRANSLATION_FILES
|
||||
)
|
||||
"""Error source, must be *translation_files*"""
|
||||
type: str
|
||||
"""Type of element of the user's Telegram Passport which has the issue, one of 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration', 'temporary_registration'"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue