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
Commits
7d137902
Commit
7d137902
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[lint] Use duplicating duniterpy.api.bma.network.PEERING_SCHEMA
parent
6d472699
No related branches found
No related tags found
No related merge requests found
Pipeline
#11045
failed
4 years ago
Stage: format
Stage: test
Stage: build
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/api/bma/ws.py
+2
-13
2 additions, 13 deletions
duniterpy/api/bma/ws.py
with
2 additions
and
13 deletions
duniterpy/api/bma/ws.py
+
2
−
13
View file @
7d137902
...
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
...
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import
logging
import
logging
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
from
duniterpy.api.bma.network
import
PEERING_SCHEMA
from
duniterpy.api.client
import
Client
,
WSConnection
from
duniterpy.api.client
import
Client
,
WSConnection
logger
=
logging
.
getLogger
(
"
duniter/ws
"
)
logger
=
logging
.
getLogger
(
"
duniter/ws
"
)
...
@@ -25,19 +26,7 @@ logger = logging.getLogger("duniter/ws")
...
@@ -25,19 +26,7 @@ logger = logging.getLogger("duniter/ws")
MODULE
=
"
ws
"
MODULE
=
"
ws
"
WS_BLOCK_SCHEMA
=
BLOCK_SCHEMA
WS_BLOCK_SCHEMA
=
BLOCK_SCHEMA
WS_PEER_SCHEMA
=
PEERING_SCHEMA
WS_PEER_SCHEMA
=
{
"
type
"
:
"
object
"
,
"
properties
"
:
{
"
version
"
:
{
"
type
"
:
"
number
"
},
"
currency
"
:
{
"
type
"
:
"
string
"
},
"
pubkey
"
:
{
"
type
"
:
"
string
"
},
"
endpoints
"
:
{
"
type
"
:
"
array
"
,
"
items
"
:
{
"
type
"
:
"
string
"
}},
"
signature
"
:
{
"
type
"
:
"
string
"
},
},
"
required
"
:
[
"
version
"
,
"
currency
"
,
"
pubkey
"
,
"
endpoints
"
,
"
signature
"
],
}
async
def
block
(
client
:
Client
)
->
WSConnection
:
async
def
block
(
client
:
Client
)
->
WSConnection
:
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment