Skip to content

Commit

Permalink
chore: remove database/duckdb support
Browse files Browse the repository at this point in the history
  • Loading branch information
brendancooley committed Feb 7, 2024
1 parent daf8f59 commit 054d034
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 5,375 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,9 @@ module = ["tests.test_validators"]
warn_unused_ignores = false

[tool.ruff.lint]
select = ["I"]
select = ["E4", "E7", "E9", "F", "I"]
ignore = []

# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
10 changes: 2 additions & 8 deletions src/patito/_pydantic/dtypes.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import itertools
from enum import Enum
from typing import (
Any,
Dict,
FrozenSet,
List,
Literal,
Optional,
Sequence,
Tuple,
cast,
get_args,
)

import polars as pl
Expand Down Expand Up @@ -70,8 +65,7 @@ class PydanticStringFormat(Enum):


def parse_composite_dtype(dtype: DataTypeClass | DataType) -> str:
"""for serialization, converts polars dtype to string representation
"""
"""for serialization, converts polars dtype to string representation"""
if dtype in pl.NESTED_DTYPES:
if dtype == pl.Struct or isinstance(dtype, pl.Struct):
raise NotImplementedError("Structs not yet supported by patito")
Expand Down Expand Up @@ -156,7 +150,7 @@ def valid_polars_dtypes_for_annotation(
Args:
annotation (type[Any] | None): python type annotation
Returns:
FrozenSet[DataTypeClass | DataType]: set of polars dtypes
"""
Expand Down

0 comments on commit 054d034

Please sign in to comment.