Skip to content

Commit

Permalink
MNT: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
genematx committed Dec 13, 2024
1 parent 7e74997 commit 04efd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiled/adapters/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ def structure(self) -> TableStructure:
"""
return self._structure

def get(self, key: str) -> ArrayAdapter | None:
def get(self, key: str) -> Union[ArrayAdapter, None]:
return self.dataframe_adapter.get(key)
2 changes: 1 addition & 1 deletion tiled/adapters/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __getitem__(self, key: str) -> ArrayAdapter:
# Must compute to determine shape.
return ArrayAdapter.from_array(self.read([key])[key].values)

def get(self, key: str) -> ArrayAdapter | None:
def get(self, key: str) -> Union[ArrayAdapter, None]:
if key not in self.structure().columns:
return None
return ArrayAdapter.from_array(self.read([key])[key].values)
Expand Down

0 comments on commit 04efd91

Please sign in to comment.