Skip to content

Commit 111e25b

Browse files
[pre-commit.ci] pre-commit autoupdate (#54)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philipp A <[email protected]>
1 parent 01d2e16 commit 111e25b

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
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.2.0
3+
rev: v4.3.0
44
hooks:
55
- id: trailing-whitespace
66
- repo: https://github.com/psf/black

tests/test_elegant_typehints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def test_autodoc(app, _testmod, direc, base, sub):
242242
out,
243243
), out
244244
assert f'<a class="headerlink" href="#test.{sub}"' in out, out
245-
assert re.search(rf"Bases: <code[^>]*><span[^>]*>test\.{base}", out), out
245+
assert re.search(rf"Bases: <code[^>]*><span[^>]*>(?:test\.)?{base}", out), out
246246

247247

248248
@pytest.mark.skipif(sys.version_info < (3, 7), reason="bpo-34776 only fixed on 3.7+")

0 commit comments

Comments
 (0)