Skip to content

Commit 897250d

Browse files
committed
Do not force a type conversion as the type is hinted in the signature
1 parent 1985cdc commit 897250d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cs3client/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def set_xattr(self, auth_token: tuple, resource: Resource, key: str, value: str,
8585
:raises: UnknownException (Unknown error)
8686
"""
8787
md = cs3spr.ArbitraryMetadata()
88-
md.metadata.update({key: str(value)}) # pylint: disable=no-member
88+
md.metadata.update({key: value}) # pylint: disable=no-member
8989
req = cs3sp.SetArbitraryMetadataRequest(ref=resource.ref, arbitrary_metadata=md, lock_id=lock_id)
9090
res = self._gateway.SetArbitraryMetadata(request=req, metadata=[auth_token])
9191
# CS3 storages may refuse to set an xattr in case of lock mismatch: this is an overprotection,

0 commit comments

Comments
 (0)