Skip to content

Commit 82cf401

Browse files
authored
Optional['pl.DataFrame'] release
1 parent 3288b26 commit 82cf401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

affinity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def build(cls, query=None, dataframe=None, **kwargs):
169169
return cls.from_dataframe(dataframe, **kwargs)
170170

171171
@classmethod
172-
def from_dataframe(cls, dataframe: Union[pd.DataFrame|pl.DataFrame], **kwargs):
172+
def from_dataframe(cls, dataframe: pd.DataFrame | Optional['pl.DataFrame'], **kwargs):
173173
instance = cls()
174174
for i, k in enumerate(dict(instance)):
175175
if kwargs.get("rename") in (None, False):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "affinity"
7-
version = "0.2.1"
7+
version = "0.2.2"
88
description = "Module for creating well-documented datasets, with types and annotations."
99
authors = [
1010
{ name = "Alex Kislukhin" }

0 commit comments

Comments
 (0)