File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 88.. autofunction:: with_container_arithmetic
99
1010.. autoclass:: BcastUntilActxArray
11+
12+ References
13+ ----------
14+
15+ .. class:: TypeT
16+
17+ A type variable with an upper bound of :class:`type`.
1118"""
1219
1320
6269
6370T = TypeVar ("T" )
6471
72+ TypeT = TypeVar ("TypeT" , bound = type )
73+
6574
6675@enum .unique
6776class _OpClass (enum .Enum ):
@@ -190,7 +199,7 @@ def with_container_arithmetic(
190199 bcast_numpy_array : bool = False ,
191200 _bcast_actx_array_type : bool | None = None ,
192201 bcast_container_types : tuple [type , ...] | None = None ,
193- ) -> Callable [[type ], type ]:
202+ ) -> Callable [[TypeT ], TypeT ]:
194203 """A class decorator that implements built-in operators for array containers
195204 by propagating the operations to the elements of the container.
196205
You can’t perform that action at this time.
0 commit comments