Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.15.22'
rev: 'v0.16.0'
hooks:
# Run the linter:
- id: ruff-check
Expand Down
5 changes: 5 additions & 0 deletions changes/unreleased/5321.kvqxGZL9Yw8R5on9pitBda.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.16.0"
[[pull_requests]]
uid = "5321"
author_uids = ["renovate[bot]"]
closes_threads = []
4 changes: 2 additions & 2 deletions docs/auxil/bot_insertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
"upload_sticker_file",
]
media_write_timeout_change = [
" write_timeout (:obj:`float` | :obj:`None`, optional): Value to pass to "
" write_timeout (:obj:`float` | :obj:`None`, optional): Value to pass to " # noqa: ISC004
" :paramref:`telegram.request.BaseRequest.post.write_timeout`. By default, ``20`` "
" seconds are used as write timeout."
"",
"",
" .. versionchanged:: 22.0",
" The default value changed to "
" The default value changed to " # noqa: ISC004
" :attr:`~telegram.request.BaseRequest.DEFAULT_NONE`.",
"",
"",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ docs = [
]
linting = [
"prek",
"ruff==0.15.22",
"ruff==0.16.0",
"mypy==1.20.2",
"pylint==4.0.6"
]
Expand Down Expand Up @@ -170,7 +170,7 @@ show-fixes = true

[tool.ruff.lint]
typing-extensions = false
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203", "ASYNC240"]
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203", "ASYNC240", "PLR0917"]
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
"G", "ISC", "PT", "ASYNC", "TCH", "SLOT", "PERF", "PYI", "FLY", "AIR", "RUF022",
"RUF023", "Q", "INP", "W", "YTT", "DTZ", "ARG", "T20", "FURB", "DOC", "TRY",
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/_files/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ def duration(self) -> int | dtm.timedelta:
)

@property
def start_timestamp(self) -> dtm.timedelta | None | int:
def start_timestamp(self) -> dtm.timedelta | int | None:
return get_timedelta_value(self._start_timestamp, attribute="start_timestamp")
2 changes: 1 addition & 1 deletion src/telegram/ext/_applicationbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# 'In' stands for input - used in parameters of methods below
# pylint: disable=invalid-name
InBT = TypeVar("InBT", bound=Bot)
InJQ = TypeVar("InJQ", bound=None | JobQueue)
InJQ = TypeVar("InJQ", bound=JobQueue | None)
InCCT = TypeVar("InCCT", bound="CallbackContext")
InUD = TypeVar("InUD")
InCD = TypeVar("InCD")
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/ext/_utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

.. versionadded:: 13.6
"""
JQ = TypeVar("JQ", bound="None | JobQueue")
JQ = TypeVar("JQ", bound="JobQueue | None")
"""Type of the job queue.

.. versionadded:: 20.0"""
Expand Down
46 changes: 23 additions & 23 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading