Skip to content
Snippets Groups Projects

Support mypy v0.990 new Optional report

Merged Moul requested to merge mypy_v0_990 into main
11 files
+ 37
30
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -15,7 +15,7 @@
@@ -15,7 +15,7 @@
import logging
import logging
from http.client import HTTPResponse
from http.client import HTTPResponse
from typing import Union
from typing import Optional, Union
from duniterpy.api.client import RESPONSE_HTTP, Client
from duniterpy.api.client import RESPONSE_HTTP, Client
@@ -266,7 +266,10 @@ def current(client: Client) -> dict:
@@ -266,7 +266,10 @@ def current(client: Client) -> dict:
def block(
def block(
client: Client, number: int = 0, block_raw: str = None, signature: str = None
client: Client,
 
number: int = 0,
 
block_raw: Optional[str] = None,
 
signature: Optional[str] = None,
) -> Union[dict, HTTPResponse]:
) -> Union[dict, HTTPResponse]:
"""
"""
GET/POST a block from/to the blockchain
GET/POST a block from/to the blockchain
Loading