Skip to content

Commit

Permalink
🎨 add optional typing to List[...] = None parameters
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 committed Sep 16, 2024
1 parent 2ca807c commit ae776a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/ledger/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def _construct_attr_json(
endpoint: str,
endpoint_type: Optional[EndpointType] = None,
all_exist_endpoints: Optional[dict] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
) -> str:
"""Create attr_json string.
Expand Down Expand Up @@ -120,7 +120,7 @@ async def update_endpoint_for_did(
endpoint_type: EndpointType = EndpointType.ENDPOINT,
write_ledger: bool = True,
endorser_did: Optional[str] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
) -> bool:
"""Check and update the endpoint on the ledger.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/ledger/indy_vdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ async def update_endpoint_for_did(
endpoint_type: Optional[EndpointType] = None,
write_ledger: bool = True,
endorser_did: Optional[str] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
) -> bool:
"""Check and update the endpoint on the ledger.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/wallet/askar.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ async def set_did_endpoint(
endpoint_type: Optional[EndpointType] = None,
write_ledger: bool = True,
endorser_did: Optional[str] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
):
"""Update the endpoint for a DID in the wallet, send to ledger if posted.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/wallet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def set_did_endpoint(
endpoint_type: Optional[EndpointType] = None,
write_ledger: bool = True,
endorser_did: Optional[str] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
):
"""Update the endpoint for a DID in the wallet, send to ledger if posted.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/wallet/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ async def promote_wallet_public_did(
write_ledger: bool = False,
profile: Optional[Profile] = None,
connection_id: Optional[str] = None,
routing_keys: List[str] = None,
routing_keys: Optional[List[str]] = None,
mediator_endpoint: Optional[str] = None,
) -> Tuple[DIDInfo, Optional[dict]]:
"""Promote supplied DID to the wallet public DID."""
Expand Down

0 comments on commit ae776a8

Please sign in to comment.