Skip to content

Commit e285cb9

Browse files
fix(excel): update type hint for root attribute in ExcelSource class
- Changed the type hint for the `root` attribute from `bytes` to `bytes | Path` to accurately reflect that it can be either the underlying Excel bytes or a file path.
1 parent 9cb5eb3 commit e285cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/askui/utils/excel_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ExcelSource(RootModel):
2121
- A file path (str or pathlib.Path)
2222
2323
Attributes:
24-
root (bytes): The underlying Excel bytes.
24+
root (bytes | Path): The underlying Excel bytes or file path.
2525
2626
Args:
2727
root (Excel): The Excel source to load from.

0 commit comments

Comments
 (0)