Skip to content

Commit 19ad7ea

Browse files
committed
fix: compat with <= 3.7
Signed-off-by: Daniel Bluhm <[email protected]>
1 parent 2ffb0b7 commit 19ad7ea

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pydid/verification_method.py

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def material(self, value):
164164
return setattr(self, self._material_prop, value)
165165

166166
@classmethod
167-
@property
168167
def method_type(cls) -> Optional[str]:
169168
"""Return method type if known."""
170169
return cls._fill_in_required_literals().get("type")

tests/test_verification_method.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ def test_infer_material():
181181

182182

183183
def test_method_type():
184-
assert Ed25519VerificationKey2018.method_type == "Ed25519VerificationKey2018"
184+
assert Ed25519VerificationKey2018.method_type() == "Ed25519VerificationKey2018"

0 commit comments

Comments
 (0)