From 10bcc90b3ecc5d709bb5e748be36325acf607730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandra=20Strz=C4=85ba=C5=82a?= <149616294+olastrz@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:03:45 +0200 Subject: [PATCH 1/2] Update __init__.py Assert version --- examples/PySDM_examples/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/PySDM_examples/__init__.py b/examples/PySDM_examples/__init__.py index d397f70626..daf10af059 100644 --- a/examples/PySDM_examples/__init__.py +++ b/examples/PySDM_examples/__init__.py @@ -9,3 +9,6 @@ except PackageNotFoundError: # package is not installed pass + +import PySDM +assert PySDM.__version__ == __version__ From 89da5f60e0de1445937ccb6557cde6b2bc88e3a3 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Mon, 27 Oct 2025 21:35:12 +0100 Subject: [PATCH 2/2] Fix import order (pylint hint) --- examples/PySDM_examples/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/PySDM_examples/__init__.py b/examples/PySDM_examples/__init__.py index daf10af059..5bbf5831a3 100644 --- a/examples/PySDM_examples/__init__.py +++ b/examples/PySDM_examples/__init__.py @@ -3,6 +3,7 @@ """ from importlib.metadata import PackageNotFoundError, version +import PySDM try: __version__ = version(__name__) @@ -10,5 +11,4 @@ # package is not installed pass -import PySDM assert PySDM.__version__ == __version__