diff --git a/pymodbus/transport/transport_serial.py b/pymodbus/transport/transport_serial.py index 1b53d319c..9a42fe372 100644 --- a/pymodbus/transport/transport_serial.py +++ b/pymodbus/transport/transport_serial.py @@ -2,7 +2,7 @@ import asyncio import contextlib import os -from typing import Tuple, List +from typing import List, Tuple with contextlib.suppress(ImportError):