Skip to content

Commit ba2c469

Browse files
OutSquareCapitalevertlammerts
authored andcommitted
lint fixes + fixed missing TypeAlias markers
1 parent 4e0a1c0 commit ba2c469

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

_duckdb-stubs/_typing.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ if TYPE_CHECKING:
1212

1313
# Numpy protocols
1414

15-
_T_co = TypeVar("_T_co", covariant=True)
1615
_S_co = TypeVar("_S_co", bound=tuple[Any, ...], covariant=True)
1716
_D_co = TypeVar("_D_co", covariant=True)
1817

@@ -55,7 +54,7 @@ class NPArrayLike(NPProtocol, Generic[_S_co, _D_co], Protocol):
5554
# Expression and values conversions
5655

5756
NumericLiteral: TypeAlias = int | float
58-
"""Python objects that can be converted to a numerical `Expression` or `DuckDBPyType` (integer or floating points numbers.)"""
57+
"""Python objects that can be converted to a numerical `Expression` or `DuckDBPyType`."""
5958
TemporalLiteral: TypeAlias = date | datetime | time | timedelta
6059
BlobLiteral: TypeAlias = bytes | bytearray
6160
"""Python objects that can be converted to a `BLOB` `ConstantExpression` or `DuckDBPyType`.
@@ -136,8 +135,8 @@ NestedIds: TypeAlias = Literal["list", "struct", "array", "enum", "map", "decima
136135
PyTypeIds: TypeAlias = Builtins | NestedIds
137136
"""All possible identifiers for `DuckDBPyType.id`."""
138137

139-
StrIntoPyType = Builtins | Literal["json"] | str
140-
"""Any `str` that can be converted into a `DuckDBPyType`.
138+
StrIntoPyType: TypeAlias = Builtins | Literal["json"] | str
139+
"""Any `str` that can be converted into a `DuckDBPyType`.
141140
142141
The pytypes not present in the literal values are the composed ones, like `STRUCT` or `DECIMAL`.
143142
@@ -203,5 +202,5 @@ JsonRecordOptions: TypeAlias = _Auto | Literal["true", "false"]
203202

204203
# Other
205204

206-
JoinType = Literal["inner", "left", "right", "outer", "semi", "anti"]
205+
JoinType: TypeAlias = Literal["inner", "left", "right", "outer", "semi", "anti"]
207206
"""Types of join accepted by `DuckDBPyRelation.join` method."""

0 commit comments

Comments
 (0)