Skip to content

Commit b45692c

Browse files
committed
Use PEP 695 syntax
1 parent 1566b62 commit b45692c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sphinx/search/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727

2828
from sphinx.environment import BuildEnvironment
2929

30-
class _ReadableStream[T_co](Protocol):
31-
def read(self, n: int = ..., /) -> T_co: ...
32-
def readline(self, n: int = ..., /) -> T_co: ...
30+
class _ReadableStream[T](Protocol):
31+
def read(self, n: int = ..., /) -> T: ...
32+
def readline(self, n: int = ..., /) -> T: ...
3333

34-
class _WritableStream[T_contra](Protocol):
35-
def write(self, s: T_contra, /) -> object: ...
34+
class _WritableStream[T](Protocol):
35+
def write(self, s: T, /) -> object: ...
3636

3737

3838
_NON_MINIFIED_JS_PATH = package_dir.joinpath('search', 'non-minified-js')

0 commit comments

Comments
 (0)