From 897250d50dd084173873496634dd91aeb3e10cbd Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Tue, 1 Oct 2024 16:27:36 +0200 Subject: [PATCH] Do not force a type conversion as the type is hinted in the signature --- cs3client/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cs3client/file.py b/cs3client/file.py index 3388010..e8a5554 100644 --- a/cs3client/file.py +++ b/cs3client/file.py @@ -85,7 +85,7 @@ def set_xattr(self, auth_token: tuple, resource: Resource, key: str, value: str, :raises: UnknownException (Unknown error) """ md = cs3spr.ArbitraryMetadata() - md.metadata.update({key: str(value)}) # pylint: disable=no-member + md.metadata.update({key: value}) # pylint: disable=no-member req = cs3sp.SetArbitraryMetadataRequest(ref=resource.ref, arbitrary_metadata=md, lock_id=lock_id) res = self._gateway.SetArbitraryMetadata(request=req, metadata=[auth_token]) # CS3 storages may refuse to set an xattr in case of lock mismatch: this is an overprotection,