[pre-commit.ci] pre-commit autoupdate (#5126)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.261 → v0.0.262](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.261...v0.0.262)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2023-05-01 13:48:20 +05:30 committed by GitHub
parent 479413b5d0
commit a787ee10d7
Failed to generate hash of commit
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,7 @@ repos:
pass_filenames: false
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.261'
rev: 'v0.0.262'
hooks:
- id: ruff
args: [., --fix, --exit-non-zero-on-fix]

View file

@ -242,8 +242,9 @@ class TokenInfo(collections.namedtuple("TokenInfo", "type string start end line"
def __repr__(self):
annotated_type = "%d (%s)" % (self.type, tok_name[self.type])
return (
"TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r)"
% self._replace(type=annotated_type)
"TokenInfo(type={}, string={!r}, start={!r}, end={!r}, line={!r})".format(
*self._replace(type=annotated_type)
)
)
@property