Skip to content

Commit f2c12de

Browse files
committed
Fix linting issues
The unsubscriptable object errors are fixed in Pylint, pylint-dev/pylint#2416, but the fixed release is not available via prospector.
1 parent 10106ea commit f2c12de

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Diff for: .prospector.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
pylint:
22
disable:
33
- cyclic-import
4+
- no-else-break
5+
- no-else-continue
46
- unused-argument
57
- useless-object-inheritance
68

Diff for: compliance/run-autobahn-tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def main() -> None:
203203
sys.exit(2)
204204
coverage_settings = {"coveragerc": "../.coveragerc"}
205205
try:
206-
import wsproto
206+
import wsproto # pylint: disable=import-outside-toplevel
207207
except ImportError:
208208
say("wsproto must be on python path -- set PYTHONPATH or install it")
209209
sys.exit(2)

Diff for: tox.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ commands =
4040

4141
[testenv:lint]
4242
basepython = python3.6
43-
# pylint==2.1.1 required due to prospector bug, see https://github.com/PyCQA/prospector/pull/309
4443
deps =
45-
prospector==1.1.7
44+
prospector
4645
commands = prospector
4746

4847
[testenv:docs]

Diff for: wsproto/events.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Message(Event, Generic[T]):
222222

223223

224224
@dataclass(frozen=True)
225-
class TextMessage(Message[str]):
225+
class TextMessage(Message[str]): # pylint: disable=unsubscriptable-object
226226
"""This event is fired when a data frame with TEXT payload is received.
227227
228228
Fields:
@@ -240,7 +240,7 @@ class TextMessage(Message[str]):
240240

241241

242242
@dataclass(frozen=True)
243-
class BytesMessage(Message[bytes]):
243+
class BytesMessage(Message[bytes]): # pylint: disable=unsubscriptable-object
244244
"""This event is fired when a data frame with BINARY payload is
245245
received.
246246

0 commit comments

Comments
 (0)