This is an automated email from the ASF dual-hosted git repository.

hutcheb pushed a commit to branch feat/plc4py_code_gen
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/feat/plc4py_code_gen by this 
push:
     new e08a16f20d chore(plc4py): Fixed build wrong import was used re.Pattern 
instead of typing.Pattern
e08a16f20d is described below

commit e08a16f20d538f278b81daca580c27283f4a14fd
Author: Ben Hutcheson <[email protected]>
AuthorDate: Sun Nov 12 10:34:42 2023 +0100

    chore(plc4py): Fixed build wrong import was used re.Pattern instead of 
typing.Pattern
---
 sandbox/plc4py/plc4py/drivers/modbus/ModbusTag.py                      | 3 +--
 .../plc4py/tests/unit/plc4py/drivers/modbus/test_modbus_connection.py  | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/sandbox/plc4py/plc4py/drivers/modbus/ModbusTag.py 
b/sandbox/plc4py/plc4py/drivers/modbus/ModbusTag.py
index debf94b8c2..140576c557 100644
--- a/sandbox/plc4py/plc4py/drivers/modbus/ModbusTag.py
+++ b/sandbox/plc4py/plc4py/drivers/modbus/ModbusTag.py
@@ -18,8 +18,7 @@
 #
 import re
 from dataclasses import dataclass
-from re import Pattern
-from typing import AnyStr
+from typing import AnyStr, Pattern
 
 from plc4py.api.exceptions.exceptions import PlcFieldParseException
 from plc4py.api.messages.PlcField import PlcTag
diff --git 
a/sandbox/plc4py/tests/unit/plc4py/drivers/modbus/test_modbus_connection.py 
b/sandbox/plc4py/tests/unit/plc4py/drivers/modbus/test_modbus_connection.py
index 2f038b475f..c848f87500 100644
--- a/sandbox/plc4py/tests/unit/plc4py/drivers/modbus/test_modbus_connection.py
+++ b/sandbox/plc4py/tests/unit/plc4py/drivers/modbus/test_modbus_connection.py
@@ -28,7 +28,7 @@ async def manual_test_plc_driver_modbus_connect():
     assert not connection.is_connected()
 
 
-async def Manual_test_plc_driver_modbus_read():
+async def manual_test_plc_driver_modbus_read():
     driver_manager = PlcDriverManager()
     async with driver_manager.connection("modbus://127.0.0.1:5555") as 
connection:
         with connection.read_request_builder() as builder:

Reply via email to