From ff37feb14fc03aa035d7c9a933af4d5b368e49f2 Mon Sep 17 00:00:00 2001 From: Paul Barrett Date: Wed, 7 Sep 2022 19:30:24 -0500 Subject: [PATCH] Update type hint in add method of StructDef Resubmit of #37 --- pycstruct/pycstruct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycstruct/pycstruct.py b/pycstruct/pycstruct.py index b232661..c7ae5ac 100644 --- a/pycstruct/pycstruct.py +++ b/pycstruct/pycstruct.py @@ -504,7 +504,7 @@ def add(self, datatype, name, length=1, byteorder="", same_level=False, shape=No +------------+---------------+--------------------------------------+ :param datatype: Element data type. See above. - :type datatype: str + :type datatype: str | _BaseDef :param name: Name of element. Needs to be unique. :type name: str :param length: Number of elements. If > 1 this is an array/list of