Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent 10edfbf commit 6130154
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 220 deletions.
54 changes: 18 additions & 36 deletions narwhals/pandas_like/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,73 +21,55 @@ def __eq__(self, other: DType | type[DType]) -> bool: # type: ignore[override]
return isinstance_or_issubclass(other, type(self))


class NumericType(DType):
...
class NumericType(DType): ...


class TemporalType(DType):
...
class TemporalType(DType): ...


class Int64(NumericType):
...
class Int64(NumericType): ...


class Int32(NumericType):
...
class Int32(NumericType): ...


class Int16(NumericType):
...
class Int16(NumericType): ...


class Int8(NumericType):
...
class Int8(NumericType): ...


class UInt64(NumericType):
...
class UInt64(NumericType): ...


class UInt32(NumericType):
...
class UInt32(NumericType): ...


class UInt16(NumericType):
...
class UInt16(NumericType): ...


class UInt8(NumericType):
...
class UInt8(NumericType): ...


class Float64(NumericType):
...
class Float64(NumericType): ...


class Float32(NumericType):
...
class Float32(NumericType): ...


class String(DType):
...
class String(DType): ...


class Boolean(DType):
...
class Boolean(DType): ...


class Object(DType):
...
class Object(DType): ...


class Datetime(DType):
...
class Datetime(DType): ...


class Date(DType):
...
class Date(DType): ...


class Duration(DType):
...
class Duration(DType): ...
48 changes: 16 additions & 32 deletions narwhals/polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,68 +154,52 @@ def is_numeric(cls: type[Self]) -> bool:
return reverse_translate_dtype(cls).is_numeric() # type: ignore[no-any-return]


class NumericType(DType):
...
class NumericType(DType): ...


class TemporalType(DType):
...
class TemporalType(DType): ...


class Int64(NumericType):
...
class Int64(NumericType): ...


class Int32(NumericType):
...
class Int32(NumericType): ...


class Int16(NumericType):
...
class Int16(NumericType): ...


class Int8(NumericType):
...
class Int8(NumericType): ...


class UInt64(NumericType):
...
class UInt64(NumericType): ...


class UInt32(NumericType):
...
class UInt32(NumericType): ...


class UInt16(NumericType):
...
class UInt16(NumericType): ...


class UInt8(NumericType):
...
class UInt8(NumericType): ...


class Float64(NumericType):
...
class Float64(NumericType): ...


class Float32(NumericType):
...
class Float32(NumericType): ...


class String(DType):
...
class String(DType): ...


class Boolean(DType):
...
class Boolean(DType): ...


class Datetime(TemporalType):
...
class Datetime(TemporalType): ...


class Date(TemporalType):
...
class Date(TemporalType): ...


class Namespace(NamespaceProtocol):
Expand Down
Loading

0 comments on commit 6130154

Please sign in to comment.