Skip to content

Commit 7d97af8

Browse files
committed
Bump and release 1.1.0
1 parent d2654f7 commit 7d97af8

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

CHANGELOG.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
Release History
22
===============
33

4-
Unreleased
5-
----------
4+
1.1.0 (2022-02-27)
5+
------------------
66

77
- Added support for Python 3.10.
88
- Drop support for Python 3.6, meaning the minimum supported version
99
is Python 3.7.0.
10+
- Various type checking and code linting improvements.
1011

1112

1213
1.0.0 (2020-11-22)

src/wsproto/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .handshake import H11Handshake
1212
from .typing import Headers
1313

14-
__version__ = "1.0.0+dev"
14+
__version__ = "1.1.0"
1515

1616

1717
class WSConnection:

src/wsproto/frame_protocol.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def process(self, data: bytes) -> bytes:
5353
PAYLOAD_LENGTH_TWO_BYTE = 126
5454
PAYLOAD_LENGTH_EIGHT_BYTE = 127
5555
MAX_PAYLOAD_NORMAL = 125
56-
MAX_PAYLOAD_TWO_BYTE = 2 ** 16 - 1
57-
MAX_PAYLOAD_EIGHT_BYTE = 2 ** 64 - 1
56+
MAX_PAYLOAD_TWO_BYTE = 2**16 - 1
57+
MAX_PAYLOAD_EIGHT_BYTE = 2**64 - 1
5858
MAX_FRAME_PAYLOAD = MAX_PAYLOAD_EIGHT_BYTE
5959

6060
# MASK and PAYLOAD LEN are packed into a byte

test/test_frame_protocol.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1133,13 +1133,13 @@ def test_message_length_min_two_byte(self) -> None:
11331133

11341134
def test_message_length_max_two_byte(self) -> None:
11351135
proto = fp.FrameProtocol(client=False, extensions=[])
1136-
payload = b"x" * (2 ** 16 - 1)
1136+
payload = b"x" * (2**16 - 1)
11371137
data = proto.send_data(payload, fin=True)
11381138
assert data == b"\x82\x7e" + struct.pack("!H", len(payload)) + payload
11391139

11401140
def test_message_length_min_eight_byte(self) -> None:
11411141
proto = fp.FrameProtocol(client=False, extensions=[])
1142-
payload = b"x" * (2 ** 16)
1142+
payload = b"x" * (2**16)
11431143
data = proto.send_data(payload, fin=True)
11441144
assert data == b"\x82\x7f" + struct.pack("!Q", len(payload)) + payload
11451145

test/test_permessage_deflate.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class Params(TypedDict, total=False):
1414
server_no_context_takeover: bool
1515
server_max_window_bits: Optional[int]
1616

17-
1817
else:
1918
Params = dict
2019

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ commands = pytest {posargs}
2626
[testenv:lint]
2727
deps =
2828
flake8>=3.9.1,<4
29-
black==21.5b2
30-
isort==5.6.4
31-
mypy==0.902
29+
black>=22.1.0,<23
30+
isort==5.10.1
31+
mypy==0.931
3232
{[testenv]deps}
3333
commands =
3434
flake8 src/ test/

0 commit comments

Comments
 (0)