diff --git a/CHANGELOG.md b/CHANGELOG.md index fde69e4..0e140b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.68.2 - 2026-01-06 + +#### Bug fixes +- Fix use of `Self` in `GatewayControl.parse()` + ## 0.68.1 - 2025-12-16 #### Enhancements diff --git a/databento/live/gateway.py b/databento/live/gateway.py index 8c98e60..c0ed240 100644 --- a/databento/live/gateway.py +++ b/databento/live/gateway.py @@ -5,11 +5,11 @@ from io import BytesIO from operator import attrgetter from typing import SupportsBytes +from typing import TypeVar from databento_dbn import Encoding from databento_dbn import Schema from databento_dbn import SType -from typing_extensions import Self from databento.common.publishers import Dataset from databento.common.system import USER_AGENT @@ -24,8 +24,10 @@ class GatewayControl(SupportsBytes): Base class for gateway control messages. """ + GC = TypeVar("GC", bound="GatewayControl") + @classmethod - def parse(cls: type[Self], line: str | bytes) -> Self: + def parse(cls: type[GC], line: str | bytes) -> GC: """ Parse a `GatewayControl` message from a string. diff --git a/databento/version.py b/databento/version.py index 993101b..8266363 100644 --- a/databento/version.py +++ b/databento/version.py @@ -1 +1 @@ -__version__ = "0.68.1" +__version__ = "0.68.2" diff --git a/pyproject.toml b/pyproject.toml index e06ebe1..7689fd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "databento" -version = "0.68.1" +version = "0.68.2" description = "Official Python client library for Databento" readme = "README.md" requires-python = ">=3.10" @@ -81,4 +81,3 @@ asyncio_mode = "auto" [tool.ruff] extend = "../ruff.toml" -target-version = "py310"