@@ -21,72 +21,56 @@ def __eq__(self, other: DType | type[DType]) -> bool: # type: ignore[override]
21
21
return isinstance_or_issubclass (other , type (self ))
22
22
23
23
24
- class NumericType (DType ):
25
- ...
24
+ class NumericType (DType ): ...
26
25
27
26
28
- class TemporalType (DType ):
29
- ...
27
+ class TemporalType (DType ): ...
30
28
31
29
32
- class Int64 (NumericType ):
33
- ...
30
+ class Int64 (NumericType ): ...
34
31
35
32
36
- class Int32 (NumericType ):
37
- ...
33
+ class Int32 (NumericType ): ...
38
34
39
35
40
- class Int16 (NumericType ):
41
- ...
36
+ class Int16 (NumericType ): ...
42
37
43
38
44
- class Int8 (NumericType ):
45
- ...
39
+ class Int8 (NumericType ): ...
46
40
47
41
48
- class UInt64 (NumericType ):
49
- ...
42
+ class UInt64 (NumericType ): ...
50
43
51
44
52
- class UInt32 (NumericType ):
53
- ...
45
+ class UInt32 (NumericType ): ...
54
46
55
47
56
- class UInt16 (NumericType ):
57
- ...
48
+ class UInt16 (NumericType ): ...
58
49
59
50
60
- class UInt8 (NumericType ):
61
- ...
51
+ class UInt8 (NumericType ): ...
62
52
63
53
64
- class Float64 (NumericType ):
65
- ...
54
+ class Float64 (NumericType ): ...
66
55
67
56
68
- class Float32 (NumericType ):
69
- ...
57
+ class Float32 (NumericType ): ...
70
58
71
59
72
- class String (DType ):
73
- ...
60
+ class String (DType ): ...
74
61
75
62
76
- class Boolean (DType ):
77
- ...
63
+ class Boolean (DType ): ...
78
64
79
65
80
66
class Object (DType ): # todo: do we really want this one?
81
67
...
82
68
83
69
84
- class Datetime (TemporalType ):
85
- ...
70
+ class Datetime (TemporalType ): ...
86
71
87
72
88
- class Date (TemporalType ):
89
- ...
73
+ class Date (TemporalType ): ...
90
74
91
75
92
76
def translate_dtype (plx : Any , dtype : DType ) -> Any :
0 commit comments