diff --git a/examples/client_async.py b/examples/client_async.py index 39067a3c7..14a75eaa6 100755 --- a/examples/client_async.py +++ b/examples/client_async.py @@ -34,7 +34,7 @@ try: - from examples import helper + import helper # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/client_async_calls.py b/examples/client_async_calls.py index 22b439b94..5f5ac87b7 100755 --- a/examples/client_async_calls.py +++ b/examples/client_async_calls.py @@ -38,7 +38,7 @@ try: - from examples import client_async + import client_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/client_calls.py b/examples/client_calls.py index 0cb4dcca0..5fa16b4a6 100755 --- a/examples/client_calls.py +++ b/examples/client_calls.py @@ -36,7 +36,7 @@ try: - from examples import client_sync + import client_sync # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/client_payload.py b/examples/client_payload.py index 1dfb0fbb7..83e75526b 100755 --- a/examples/client_payload.py +++ b/examples/client_payload.py @@ -12,7 +12,7 @@ try: - from examples import client_async + import client_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/client_sync.py b/examples/client_sync.py index 0f04eda39..381461745 100755 --- a/examples/client_sync.py +++ b/examples/client_sync.py @@ -37,7 +37,7 @@ try: - from examples import helper + import helper # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/modbus_forwarder.py b/examples/modbus_forwarder.py index 6c3338f7f..7933f1bb3 100755 --- a/examples/modbus_forwarder.py +++ b/examples/modbus_forwarder.py @@ -24,7 +24,7 @@ try: - from examples import helper + import helper # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/py.typed b/examples/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/examples/server_async.py b/examples/server_async.py index 73c20b748..86166341d 100755 --- a/examples/server_async.py +++ b/examples/server_async.py @@ -40,7 +40,7 @@ try: - from examples import helper + import helper # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/server_callback.py b/examples/server_callback.py index e80c6d1c1..878f07ec3 100755 --- a/examples/server_callback.py +++ b/examples/server_callback.py @@ -10,7 +10,7 @@ try: - from examples import server_async + import server_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/server_payload.py b/examples/server_payload.py index 6da3da04f..19b7fa4b9 100755 --- a/examples/server_payload.py +++ b/examples/server_payload.py @@ -10,7 +10,7 @@ try: - from examples import server_async + import server_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/server_sync.py b/examples/server_sync.py index 57f8177ea..871acd5f6 100755 --- a/examples/server_sync.py +++ b/examples/server_sync.py @@ -39,7 +39,8 @@ try: - from examples import helper, server_async + import helper # type: ignore[import-not-found] + import server_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\ diff --git a/examples/server_updating.py b/examples/server_updating.py index b97fe34f2..4dee58cf1 100755 --- a/examples/server_updating.py +++ b/examples/server_updating.py @@ -37,7 +37,7 @@ try: - from examples import server_async + import server_async # type: ignore[import-not-found] except ImportError: print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\ https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\