File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1111from __future__ import annotations
1212
1313import binascii
14+ from dataclasses import dataclass
1415from typing import TYPE_CHECKING
1516
1617from .settings import ChangedSetting , SettingCodes , Settings , _setting_code_from_int
@@ -292,6 +293,7 @@ def __repr__(self) -> str:
292293 )
293294
294295
296+ @dataclass (kw_only = True )
295297class WindowUpdated (Event ):
296298 """
297299 The WindowUpdated event is fired whenever a flow control window changes
@@ -307,15 +309,11 @@ class WindowUpdated(Event):
307309 May be ``0`` if the connection window was changed.
308310 """
309311
310- delta : int | None
312+ delta : int | None = None
311313 """
312314 The window delta.
313315 """
314316
315- def __init__ (self , * , stream_id : int , delta : int | None = None ) -> None :
316- self .stream_id = stream_id
317- self .delta = delta
318-
319317 def __repr__ (self ) -> str :
320318 return f"<WindowUpdated stream_id:{ self .stream_id } , delta:{ self .delta } >"
321319
You can’t perform that action at this time.
0 commit comments