Skip to content

Commit 2a238ce

Browse files
committed
Correct the ExchangeIO type hint to say it supports bytes (for raw input data)
1 parent 863f0ff commit 2a238ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cchdo/hydro/exchange/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def _is_valid_exchange_numeric(data: npt.NDArray[np.str_]) -> np.bool_:
814814
return np.all(np.isin(aligned.view("|S1"), allowed_exchange_numeric_data_chars))
815815

816816

817-
ExchangeIO = str | Path | io.BufferedIOBase
817+
ExchangeIO = str | bytes | Path | io.BufferedIOBase
818818

819819

820820
def _load_raw_exchange(

0 commit comments

Comments
 (0)