File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.68.2 - TBD
4+
5+ #### Bug fixes
6+ - Fix use of ` Self ` in ` GatewayControl.parse() `
7+
38## 0.68.1 - 2025-12-16
49
510#### Enhancements
Original file line number Diff line number Diff line change 55from io import BytesIO
66from operator import attrgetter
77from typing import SupportsBytes
8+ from typing import TypeVar
89
910from databento_dbn import Encoding
1011from databento_dbn import Schema
1112from databento_dbn import SType
12- from typing_extensions import Self
1313
1414from databento .common .publishers import Dataset
1515from databento .common .system import USER_AGENT
@@ -24,8 +24,10 @@ class GatewayControl(SupportsBytes):
2424 Base class for gateway control messages.
2525 """
2626
27+ GC = TypeVar ("GC" , bound = "GatewayControl" )
28+
2729 @classmethod
28- def parse (cls : type [Self ], line : str | bytes ) -> Self :
30+ def parse (cls : type [GC ], line : str | bytes ) -> GC :
2931 """
3032 Parse a `GatewayControl` message from a string.
3133
Original file line number Diff line number Diff line change @@ -81,4 +81,3 @@ asyncio_mode = "auto"
8181
8282[tool .ruff ]
8383extend = " ../ruff.toml"
84- target-version = " py310"
You can’t perform that action at this time.
0 commit comments