Skip to content

Commit

Permalink
turn back Jwk.alg to a standard property instead of a cached_property…
Browse files Browse the repository at this point in the history
… since it is mutable
  • Loading branch information
guillp committed May 17, 2022
1 parent daee67e commit 813df63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jwskate/jwk/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Union,
)

from backports.cached_property import cached_property
from binapy import BinaPy
from cryptography.hazmat.primitives import serialization

Expand Down Expand Up @@ -228,7 +227,7 @@ def kty(self) -> str:
"""
return self.KTY

@cached_property
@property
def alg(self) -> Optional[str]:
"""Return the configured key alg, if any.
Expand Down

0 comments on commit 813df63

Please sign in to comment.