We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1566b62 commit b45692cCopy full SHA for b45692c
sphinx/search/__init__.py
@@ -27,12 +27,12 @@
27
28
from sphinx.environment import BuildEnvironment
29
30
- class _ReadableStream[T_co](Protocol):
31
- def read(self, n: int = ..., /) -> T_co: ...
32
- def readline(self, n: int = ..., /) -> T_co: ...
+ class _ReadableStream[T](Protocol):
+ def read(self, n: int = ..., /) -> T: ...
+ def readline(self, n: int = ..., /) -> T: ...
33
34
- class _WritableStream[T_contra](Protocol):
35
- def write(self, s: T_contra, /) -> object: ...
+ class _WritableStream[T](Protocol):
+ def write(self, s: T, /) -> object: ...
36
37
38
_NON_MINIFIED_JS_PATH = package_dir.joinpath('search', 'non-minified-js')
0 commit comments