We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 176c9e0 commit f1d285eCopy full SHA for f1d285e
1 file changed
pytools/__init__.py
@@ -250,7 +250,9 @@
250
# {{{ type variables
251
252
T = TypeVar("T")
253
-R = TypeVar("R")
+T_co = TypeVar("T_co", covariant=True)
254
+T_contra = TypeVar("T_contra", contravariant=True)
255
+R = TypeVar("R", covariant=True)
256
F = TypeVar("F", bound=Callable[..., Any])
257
P = ParamSpec("P")
258
K = TypeVar("K")
@@ -1492,9 +1494,6 @@ def generate_all_integer_tuples_below(
1492
1494
n, length, least_abs))
1493
1495
1496
-T_co = TypeVar("T_co", covariant=True)
-
1497
1498
class _ConcatenableSequence(Generic[T_co], Protocol):
1499
"""
1500
A protocol that supports the following:
0 commit comments