Skip to content

Commit a25aa8f

Browse files
[pre-commit.ci] pre-commit autoupdate (#712)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](asottile/pyupgrade@v3.19.1...v3.20.0) * Remove unnecesary `type: ignore` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hynek Schlawack <[email protected]>
1 parent 3f74d9e commit a25aa8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: black
1010

1111
- repo: https://github.com/asottile/pyupgrade
12-
rev: v3.19.1
12+
rev: v3.20.0
1313
hooks:
1414
- id: pyupgrade
1515
args: [--py39-plus]

src/towncrier/_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_version(package_dir: str, package: str) -> str:
8181
version = str(version.base()).strip()
8282
# Incremental uses `X.Y.rcN`.
8383
# Standardize on importlib (and PEP440) use of `X.YrcN`:
84-
return version.replace(".rc", "rc") # type: ignore
84+
return version.replace(".rc", "rc")
8585
except TypeError:
8686
pass
8787

0 commit comments

Comments
 (0)