mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Bump Ruff to 0.8.6
This commit is contained in:
@@ -81,7 +81,7 @@ docs = [
|
||||
"sphinxcontrib-websupport",
|
||||
]
|
||||
lint = [
|
||||
"ruff==0.8.5",
|
||||
"ruff==0.8.6",
|
||||
"mypy==1.14.1",
|
||||
"sphinx-lint>=0.9",
|
||||
"types-colorama==0.4.15.20240311",
|
||||
|
||||
@@ -12,6 +12,6 @@ def slow_function(message, timeout):
|
||||
|
||||
|
||||
@contextmanager
|
||||
def feeling_good(x: int, y: int) -> Generator: # NoQA: UP006
|
||||
def feeling_good(x: int, y: int) -> Generator:
|
||||
"""You'll feel better in this context!"""
|
||||
yield
|
||||
|
||||
@@ -813,10 +813,10 @@ def test_isgenericalias():
|
||||
T = List[int] # NoQA: UP006
|
||||
S = list[Union[str, None]] # NoQA: UP007
|
||||
|
||||
C = Callable[[int], None] # NoQA: UP006 # a generic alias not having a doccomment
|
||||
C = Callable[[int], None] # a generic alias not having a doccomment
|
||||
|
||||
assert inspect.isgenericalias(C)
|
||||
assert inspect.isgenericalias(Callable) # NoQA: UP006
|
||||
assert inspect.isgenericalias(Callable)
|
||||
assert inspect.isgenericalias(T)
|
||||
assert inspect.isgenericalias(List) # NoQA: UP006
|
||||
assert inspect.isgenericalias(S)
|
||||
|
||||
Reference in New Issue
Block a user