Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Merge requests
!178
Support mypy v0.990 new Optional report
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Support mypy v0.990 new Optional report
mypy_v0_990
into
main
Overview
0
Commits
1
Pipelines
4
Changes
11
Merged
Moul
requested to merge
mypy_v0_990
into
main
2 years ago
Overview
0
Commits
1
Pipelines
4
Changes
11
Expand
PEP 484 prohibits implicit
Optional
Bump pre-commit hooks
0
0
Merge request reports
Compare
main
version 1
fb99e3bd
2 years ago
main (base)
and
latest version
latest version
c3e72ce8
1 commit,
2 years ago
version 1
fb99e3bd
1 commit,
2 years ago
11 files
+
37
−
30
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
duniterpy/api/bma/blockchain.py
+
5
−
2
Options
@@ -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