Skip to content

Commit

Permalink
Do not force a type conversion as the type is hinted in the signature
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Oct 1, 2024
1 parent 1985cdc commit 897250d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs3client/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 897250d

Please sign in to comment.