Skip to content

Commit

Permalink
pre-commit autoupdate (#3996)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pre-commit-ci[bot] and lemontree210 committed Dec 9, 2023
1 parent c6a9fbb commit 4ad94cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
args:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions telegram/ext/_applicationbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _build_ext_bot(self) -> ExtBot:
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),
)

Expand Down Expand Up @@ -317,15 +317,15 @@ def build(

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,
update_queue=update_queue,
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,
Expand All @@ -334,12 +334,12 @@ def build(
)

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

Expand Down

0 comments on commit 4ad94cc

Please sign in to comment.