Skip to content

Add tuple array support to wpistruct dataclasses#273

Open
virtuald wants to merge 1 commit into
mainfrom
wpistruct-tuple-array-fields
Open

Add tuple array support to wpistruct dataclasses#273
virtuald wants to merge 1 commit into
mainfrom
wpistruct-tuple-array-fields

Conversation

@virtuald

Copy link
Copy Markdown
Member

) from None

element_type = args[0]
if not all(arg == element_type for arg in args):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
if not all(arg == element_type for arg in args):
if not all(arg is element_type for arg in args):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: struct field with array type

2 participants