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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Merge requests
!123
#147
: Support pylint v2.7.1 R0801 rule
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
#147
: Support pylint v2.7.1 R0801 rule
147_pylint_v2.7.1_R0801
into
dev
Overview
2
Commits
2
Pipelines
10
Changes
3
Merged
Moul
requested to merge
147_pylint_v2.7.1_R0801
into
dev
4 years ago
Overview
2
Commits
2
Pipelines
10
Changes
3
0
0
Merge request reports
Compare
dev
version 4
c2ffc07d
4 years ago
version 3
e1d9e59f
4 years ago
version 2
c9349b3f
4 years ago
version 1
7d137902
4 years ago
dev (base)
and
latest version
latest version
03409f61
2 commits,
4 years ago
version 4
c2ffc07d
2 commits,
4 years ago
version 3
e1d9e59f
2 commits,
4 years ago
version 2
c9349b3f
2 commits,
4 years ago
version 1
7d137902
2 commits,
4 years ago
3 files
+
3
−
48
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
duniterpy/api/bma/ws.py
+
2
−
12
View file @ 03409f61
Edit in single-file editor
Open in Web IDE
Show full file
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import
logging
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
from
duniterpy.api.bma.network
import
PEERING_SCHEMA
from
duniterpy.api.client
import
Client
,
WSConnection
logger
=
logging
.
getLogger
(
"
duniter/ws
"
)
@@ -25,18 +26,7 @@ logger = logging.getLogger("duniter/ws")
MODULE
=
"
ws
"
WS_BLOCK_SCHEMA
=
BLOCK_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
"
],
}
WS_PEER_SCHEMA
=
PEERING_SCHEMA
async
def
block
(
client
:
Client
)
->
WSConnection
:
Loading