From 09d1c1c91f0e41c9415399a843eaec93c1af1839 Mon Sep 17 00:00:00 2001 From: Lloyd Date: Fri, 24 Apr 2026 15:53:12 +0100 Subject: [PATCH] Fix Python 3.9 type-hint imports and bump to 1.0.10 --- pyproject.toml | 2 +- src/pymc_core/__init__.py | 2 +- src/pymc_core/node/handlers/ack.py | 2 ++ src/pymc_core/node/handlers/group_text.py | 2 ++ tests/test_basic.py | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8f19f85..b48fede 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pymc_core" -version = "1.0.9" +version = "1.0.10" authors = [ {name = "Lloyd Newton", email = "lloyd@rightup.co.uk"}, ] diff --git a/src/pymc_core/__init__.py b/src/pymc_core/__init__.py index 1a7df2f..f9e4d57 100644 --- a/src/pymc_core/__init__.py +++ b/src/pymc_core/__init__.py @@ -3,7 +3,7 @@ Clean, simple API for building mesh network applications. """ -__version__ = "1.0.9" +__version__ = "1.0.10" # Core mesh functionality from .node.node import MeshNode diff --git a/src/pymc_core/node/handlers/ack.py b/src/pymc_core/node/handlers/ack.py index e47070d..e8db9b9 100644 --- a/src/pymc_core/node/handlers/ack.py +++ b/src/pymc_core/node/handlers/ack.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import asyncio from typing import Awaitable, Callable, Optional diff --git a/src/pymc_core/node/handlers/group_text.py b/src/pymc_core/node/handlers/group_text.py index 35dafcc..13e2a2b 100644 --- a/src/pymc_core/node/handlers/group_text.py +++ b/src/pymc_core/node/handlers/group_text.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import Optional from ...protocol import Packet diff --git a/tests/test_basic.py b/tests/test_basic.py index f957fb4..a0d065a 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -2,7 +2,7 @@ def test_version(): - assert __version__ == "1.0.9" + assert __version__ == "1.0.10" def test_import():