From 3aa4446ee2a687108a22c266957718b5d4498d9e Mon Sep 17 00:00:00 2001 From: Nick Macholl Date: Fri, 19 Dec 2025 16:30:40 -0800 Subject: [PATCH 1/2] FIX: Fix use of typing-extensions --- CHANGELOG.md | 5 +++++ databento/live/gateway.py | 6 ++++-- pyproject.toml | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fde69e4..3e2b8a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.68.2 - TBD + +#### 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/pyproject.toml b/pyproject.toml index e06ebe1..da71ac0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,4 +81,3 @@ asyncio_mode = "auto" [tool.ruff] extend = "../ruff.toml" -target-version = "py310" From f633b75a0c331d38cb5b368857fe0068b03edc1b Mon Sep 17 00:00:00 2001 From: Nick Macholl Date: Tue, 6 Jan 2026 10:48:10 -0800 Subject: [PATCH 2/2] VER: Release 0.68.2 --- CHANGELOG.md | 2 +- databento/version.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e2b8a8..0e140b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 0.68.2 - TBD +## 0.68.2 - 2026-01-06 #### Bug fixes - Fix use of `Self` in `GatewayControl.parse()` 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 da71ac0..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"