Code quality #1773

Open
PeterSurda wants to merge 1 commits from PeterSurda/cq101 into v0.6
PeterSurda commented 2021-06-02 09:50:37 +02:00 (Migrated from github.com)

A couple of code quality fixes.

A couple of code quality fixes.
g1itch (Migrated from github.com) reviewed 2021-06-02 14:55:36 +02:00
@ -24,3 +24,3 @@
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
self.verackReceived = True
g1itch (Migrated from github.com) commented 2021-06-02 14:55:36 +02:00
super(UDPSocket, self).__init__(sock=sock)

?

```python super(UDPSocket, self).__init__(sock=sock) ``` ?
g1itch (Migrated from github.com) reviewed 2021-08-09 11:19:15 +02:00
@ -104,3 +107,4 @@
# pylint: disable=no-self-use
return True
def bm_command_pong(self):
g1itch (Migrated from github.com) commented 2021-08-09 11:19:15 +02:00

This is more of inheritance flow. Maybe UDPSocket should inherit from some more basic class?

This is more of inheritance flow. Maybe `UDPSocket` should inherit from some more basic class?
g1itch (Migrated from github.com) reviewed 2021-08-09 11:26:10 +02:00
@ -23,3 +23,3 @@
def __init__(self, host=None, sock=None, announcing=False):
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
g1itch (Migrated from github.com) commented 2021-08-09 11:26:10 +02:00
This is a bug: https://github.com/PyCQA/pylint/issues/2315
PeterSurda (Migrated from github.com) reviewed 2021-08-09 12:27:09 +02:00
@ -104,3 +107,4 @@
# pylint: disable=no-self-use
return True
def bm_command_pong(self):
PeterSurda (Migrated from github.com) commented 2021-08-09 12:27:09 +02:00

Perhaps.

Perhaps.
Jeroenvb3 (Migrated from github.com) reviewed 2022-12-21 11:12:00 +01:00
@ -23,3 +23,3 @@
def __init__(self, host=None, sock=None, announcing=False):
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
Jeroenvb3 (Migrated from github.com) commented 2022-12-21 11:12:00 +01:00

The linked bug has been fixed. The ignore shouldn't be needed anymore.

The linked bug has been fixed. The ignore shouldn't be needed anymore.
This repo is archived. You cannot comment on pull requests.
No description provided.