From bb78ff40424308ab008a37ca409c116fa785a0aa Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Fri, 18 Oct 2024 22:48:27 +1100 Subject: [PATCH] c --- py-polars/polars/io/cloud/credential_provider.py | 2 +- py-polars/tests/unit/io/cloud/test_cloud.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/py-polars/polars/io/cloud/credential_provider.py b/py-polars/polars/io/cloud/credential_provider.py index 4d8b390b992e..b32775b4698d 100644 --- a/py-polars/polars/io/cloud/credential_provider.py +++ b/py-polars/polars/io/cloud/credential_provider.py @@ -55,7 +55,7 @@ class CredentialProviderAWS(CredentialProvider): at any point without it being considered a breaking change. """ - def __init__(self, *, profile_name: str = "default") -> None: + def __init__(self, *, profile_name: str | None = None) -> None: """ Initialize a credential provider for AWS. diff --git a/py-polars/tests/unit/io/cloud/test_cloud.py b/py-polars/tests/unit/io/cloud/test_cloud.py index d939170b5cb1..500ec3c6b15f 100644 --- a/py-polars/tests/unit/io/cloud/test_cloud.py +++ b/py-polars/tests/unit/io/cloud/test_cloud.py @@ -33,9 +33,8 @@ def raises(*_: None, **__: None) -> None: monkeypatch.setattr(pl.CredentialProviderAWS, "__init__", raises) - # By default `credential_provider="auto"` with pytest.raises(AssertionError, match=err_magic): - pl.scan_parquet("s3://bucket/path") + pl.scan_parquet("s3://bucket/path", credential_provider="auto") # Passing `None` should disable the automatic instantiation of # `CredentialProviderAWS`