Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: check-added-large-files
- id: check-toml
- repo: https://github.com/python-poetry/poetry
rev: 2.1.1
rev: 2.1.2
hooks:
- id: poetry-check
- repo: https://github.com/tox-dev/pyproject-fmt
Expand Down
5 changes: 4 additions & 1 deletion cytotable/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def _build_path(path: str, **kwargs) -> Union[pathlib.Path, AnyPath]:

# set the client for a CloudPath
if isinstance(processed_path, CloudPath):
processed_path.client = processed_path.client.__class__(**kwargs)
# Create a new client instance with the provided kwargs
client = processed_path.client.__class__(**kwargs)
# Recreate the CloudPath object with the new client
processed_path = client.CloudPath(processed_path)

return processed_path

Expand Down
Loading