mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 06:25:12 +01:00
Apply isort
and Update pre-commit.ci Configuration (#3049)
This commit is contained in:
parent
ca4e4c6280
commit
2175af6abc
6 changed files with 4 additions and 8 deletions
|
@ -5,6 +5,9 @@
|
|||
ci:
|
||||
autofix_prs: false
|
||||
autoupdate_schedule: monthly
|
||||
# We currently only need this behavior on the v13.x branch were we have the vendored urllib
|
||||
# TODO: Remove once we discontinue v13
|
||||
submodules: true
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
|
|
|
@ -42,7 +42,6 @@ from typing import (
|
|||
no_type_check,
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
"""Base class for Telegram Objects."""
|
||||
import json
|
||||
from copy import deepcopy
|
||||
|
||||
|
||||
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Type, TypeVar, Union
|
||||
|
||||
from telegram._utils.types import JSONDict
|
||||
|
|
|
@ -25,7 +25,6 @@ from http import HTTPStatus
|
|||
from types import TracebackType
|
||||
from typing import ClassVar, Optional, Tuple, Type, TypeVar, Union
|
||||
|
||||
|
||||
from telegram._utils.defaultvalue import DEFAULT_NONE as _DEFAULT_NONE
|
||||
from telegram._utils.types import JSONDict, ODVInput
|
||||
from telegram._version import __version__ as ptb_ver
|
||||
|
|
|
@ -17,10 +17,8 @@
|
|||
# You should have received a copy of the GNU Lesser Public License
|
||||
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
||||
import json
|
||||
from urllib.parse import quote
|
||||
|
||||
|
||||
from typing import Any, Dict
|
||||
from urllib.parse import quote
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ from copy import deepcopy
|
|||
|
||||
import pytest
|
||||
|
||||
|
||||
from telegram import Chat, Message, PhotoSize, TelegramObject, User
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue