Closed chrisbeardy closed 3 years ago
The custome type def StructureDef:
StructureDef = Tuple[ Union[Tuple[str, Type, int], Tuple[str, Type, int, Optional[int]]], ... ]
Would this make sense to add it so that users can import it and do this?
from pyads import StructureDef COMMAND_STRUCTURE: StructureDef = ( ("actionID", pyads.PLCTYPE_UINT, 1), ("commandID", pyads.PLCTYPE_UINT, 1), # Change to trigger command input ) def _amend_def_var(var, original_def: StructureDef) -> StructureDef: return tuple(((var + "." + i[0]),) + tuple(i[1:]) for i in original_def)
That's nice. We can do that.
@chrisbeardy thanks for taking care of it
The custome type def StructureDef:
Would this make sense to add it so that users can import it and do this?