mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix various Ruff errors
This commit is contained in:
@@ -28,13 +28,13 @@ def test_dirhtml(app, status, warning):
|
||||
invdata = InventoryFile.load(f, 'path/to', posixpath.join)
|
||||
|
||||
assert 'index' in invdata.get('std:doc')
|
||||
assert ('Python', '', 'path/to/', '-') == invdata['std:doc']['index']
|
||||
assert invdata['std:doc']['index'] == ('Python', '', 'path/to/', '-')
|
||||
|
||||
assert 'foo/index' in invdata.get('std:doc')
|
||||
assert ('Python', '', 'path/to/foo/', '-') == invdata['std:doc']['foo/index']
|
||||
assert invdata['std:doc']['foo/index'] == ('Python', '', 'path/to/foo/', '-')
|
||||
|
||||
assert 'index' in invdata.get('std:label')
|
||||
assert ('Python', '', 'path/to/#index', '-') == invdata['std:label']['index']
|
||||
assert invdata['std:label']['index'] == ('Python', '', 'path/to/#index', '-')
|
||||
|
||||
assert 'foo' in invdata.get('std:label')
|
||||
assert ('Python', '', 'path/to/foo/#foo', 'foo/index') == invdata['std:label']['foo']
|
||||
assert invdata['std:label']['foo'] == ('Python', '', 'path/to/foo/#foo', 'foo/index')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from inspect import Signature
|
||||
from numbers import Integral
|
||||
from numbers import Integral # NoQA: TCH003
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user