Skip to content
Snippets Groups Projects
Commit 752b80bd authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #91 fix pylint alerts in api.bma.network module

parent 9ace1e38
No related branches found
No related tags found
1 merge request!60Pylint
...@@ -155,9 +155,10 @@ async def peers(client: Client, leaves: bool = False, leaf: str = "") -> dict: ...@@ -155,9 +155,10 @@ async def peers(client: Client, leaves: bool = False, leaf: str = "") -> dict:
:return: :return:
""" """
if leaves is True: if leaves is True:
return await client.get(MODULE + '/peering/peers', {"leaves": "true"}, schema=PEERS_SCHEMA) response = await client.get(MODULE + '/peering/peers', {"leaves": "true"}, schema=PEERS_SCHEMA)
else: else:
return await client.get(MODULE + '/peering/peers', {"leaf": leaf}, schema=PEERS_SCHEMA) response = await client.get(MODULE + '/peering/peers', {"leaf": leaf}, schema=PEERS_SCHEMA)
return response
async def peer(client: Client, peer_signed_raw: str) -> ClientResponse: async def peer(client: Client, peer_signed_raw: str) -> ClientResponse:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment