Skip to content

Commit

Permalink
back compat for isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs committed Jun 11, 2024
1 parent 1bf8262 commit 772f895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosmicqc/scdataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
self.data_source = "pd.DataFrame"
self.data = data

elif isinstance(data, pathlib.Path | str):
elif isinstance(data, pathlib.Path) or isinstance(data, str): # noqa: PLR1701, SIM101
# if the data is a string, remember the original source
# through a data_source attr
self.data_source = data
Expand Down

0 comments on commit 772f895

Please sign in to comment.