Skip to content

Commit cbf7801

Browse files
committed
chore: type hints on init for methods and key types
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
1 parent 2cebc37 commit cbf7801

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

aries_cloudagent/wallet/did_method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class DIDMethod:
1010
"""Class to represent a did method."""
1111

12-
def __init__(self, name, key_types, rotation) -> None:
12+
def __init__(self, name: str, key_types: List[KeyType], rotation: bool = False):
1313
"""Construct did method class."""
1414
self._method_name: str = name
1515
self._supported_key_types: List[KeyType] = key_types

aries_cloudagent/wallet/key_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class KeyType:
77
"""Key Type class."""
88

9-
def __init__(self, key_type, multicodec_name, multicodec_prefix: bytes) -> None:
9+
def __init__(self, key_type: str, multicodec_name: str, multicodec_prefix: bytes):
1010
"""Construct key type."""
1111
self._type: str = key_type
1212
self._name: str = multicodec_name

0 commit comments

Comments
 (0)