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:
pre-commit-ci[bot] 2023-12-09 13:11:45 +01:00 committed by GitHub
parent c6a9fbb5c7
commit 4ad94cc7f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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