From f43a202f838de5b48bb0959404cb60d1d4643dd8 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Thu, 29 Oct 2026 13:40:06 -0400 Subject: [PATCH 1/2] Include the inline typing marker in distributions --- pyproject.toml | 3 +++ src/python_introspect/py.typed | 0 2 files changed, 3 insertions(+) create mode 100644 src/python_introspect/py.typed diff --git a/pyproject.toml b/pyproject.toml index 5e91acb..25ada10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,9 @@ Issues = "https://github.com/OpenHCSDev/python-introspect/issues" [tool.setuptools.packages.find] where = ["src"] +[tool.setuptools.package-data] +python_introspect = ["py.typed"] + [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] diff --git a/src/python_introspect/py.typed b/src/python_introspect/py.typed new file mode 100644 index 0000000..e69de29 From 2cbd423d9910b8ca3e9cd11718f9d9057efb57e2 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Thu, 29 Oct 2026 13:57:55 -0400 Subject: [PATCH 2/2] Keep factory retry control aligned with propagated failures --- tests/test_dataclass_source_preparation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_dataclass_source_preparation.py b/tests/test_dataclass_source_preparation.py index 6645644..11cb5fa 100644 --- a/tests/test_dataclass_source_preparation.py +++ b/tests/test_dataclass_source_preparation.py @@ -62,9 +62,11 @@ class Declaration: SignatureAnalyzer.prepare_dataclass_declaration(Declaration) assert calls == [] - assert SignatureAnalyzer._analyze_dataclass(Declaration) == {} + with pytest.raises(RuntimeError): + SignatureAnalyzer._analyze_dataclass(Declaration) assert Declaration not in SignatureAnalyzer._dataclass_analysis_cache - assert SignatureAnalyzer._analyze_dataclass(Declaration) == {} + with pytest.raises(RuntimeError): + SignatureAnalyzer._analyze_dataclass(Declaration) assert calls == [1, 1]