mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
pre-commit
autoupdate (#3996)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com>
This commit is contained in:
parent
c6a9fbb5c7
commit
4ad94cc7f7
2 changed files with 8 additions and 8 deletions
|
@ -6,7 +6,7 @@ ci:
|
|||
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.10.1
|
||||
rev: 23.11.0
|
||||
hooks:
|
||||
- id: black
|
||||
args:
|
||||
|
@ -35,7 +35,7 @@ repos:
|
|||
- aiolimiter~=1.1.0
|
||||
- . # this basically does `pip install -e .`
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.6.1
|
||||
rev: v1.7.1
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: mypy-ptb
|
||||
|
@ -77,7 +77,7 @@ repos:
|
|||
- --diff
|
||||
- --check
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: 'v0.1.5'
|
||||
rev: 'v0.1.6'
|
||||
hooks:
|
||||
- id: ruff
|
||||
name: ruff
|
||||
|
|
|
@ -272,7 +272,7 @@ class ApplicationBuilder(Generic[BT, CCT, UD, CD, BD, JQ]):
|
|||
arbitrary_callback_data=DefaultValue.get_value(self._arbitrary_callback_data),
|
||||
request=self._build_request(get_updates=False),
|
||||
get_updates_request=self._build_request(get_updates=True),
|
||||
rate_limiter=DefaultValue.get_value(self._rate_limiter), # type: ignore[arg-type]
|
||||
rate_limiter=DefaultValue.get_value(self._rate_limiter),
|
||||
local_mode=DefaultValue.get_value(self._local_mode),
|
||||
)
|
||||
|
||||
|
@ -317,7 +317,7 @@ class ApplicationBuilder(Generic[BT, CCT, UD, CD, BD, JQ]):
|
|||
|
||||
application: Application[
|
||||
BT, CCT, UD, CD, BD, JQ
|
||||
] = DefaultValue.get_value( # type: ignore[operator] # pylint: disable=not-callable
|
||||
] = DefaultValue.get_value( # pylint: disable=not-callable
|
||||
self._application_class
|
||||
)(
|
||||
bot=bot,
|
||||
|
@ -325,7 +325,7 @@ class ApplicationBuilder(Generic[BT, CCT, UD, CD, BD, JQ]):
|
|||
updater=updater,
|
||||
update_processor=self._update_processor,
|
||||
job_queue=job_queue,
|
||||
persistence=persistence, # type: ignore[arg-type]
|
||||
persistence=persistence,
|
||||
context_types=DefaultValue.get_value(self._context_types),
|
||||
post_init=self._post_init,
|
||||
post_shutdown=self._post_shutdown,
|
||||
|
@ -334,12 +334,12 @@ class ApplicationBuilder(Generic[BT, CCT, UD, CD, BD, JQ]):
|
|||
)
|
||||
|
||||
if job_queue is not None:
|
||||
job_queue.set_application(application) # type: ignore[arg-type, union-attr]
|
||||
job_queue.set_application(application) # type: ignore[arg-type]
|
||||
|
||||
if persistence is not None:
|
||||
# This raises an exception if persistence.store_data.callback_data is True
|
||||
# but self.bot is not an instance of ExtBot - so no need to check that later on
|
||||
persistence.set_bot(bot) # type: ignore[union-attr]
|
||||
persistence.set_bot(bot)
|
||||
|
||||
return application
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue