File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
55
56
56
# type hints (private)
57
57
PInit = ParamSpec ("PInit" )
58
- TAttr = TypeVar ("TAttr " )
58
+ T = TypeVar ("T " )
59
59
TDataClass = TypeVar ("TDataClass" , bound = "DataClass[Any]" )
60
60
TDims = TypeVar ("TDims" , covariant = True )
61
61
TDType = TypeVar ("TDType" , covariant = True )
62
- TName = TypeVar ("TName " , bound = Hashable )
62
+ THashable = TypeVar ("THashable " , bound = Hashable )
63
63
64
64
AnyArray : TypeAlias = "np.ndarray[Any, Any]"
65
65
AnyDType : TypeAlias = "np.dtype[Any]"
@@ -114,7 +114,7 @@ def annotates(cls, tp: Any) -> bool:
114
114
return any (isinstance (arg , cls ) for arg in get_args (tp ))
115
115
116
116
117
- Attr = Annotated [TAttr , FType .ATTR ]
117
+ Attr = Annotated [T , FType .ATTR ]
118
118
"""Type hint to define attribute fields (``Attr[TAttr]``).
119
119
120
120
Example:
@@ -236,7 +236,7 @@ class ColorImage(AsDataset):
236
236
237
237
"""
238
238
239
- Name = Annotated [TName , FType .NAME ]
239
+ Name = Annotated [THashable , FType .NAME ]
240
240
"""Type hint to define name fields (``Name[TName]``).
241
241
242
242
Example:
You can’t perform that action at this time.
0 commit comments