-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fields: use polymorphism for effective substructure determination
This code is functionally equivalent to the previous version for ConditionalField, but we now properly consider other fields that could wrap SubstructureField to be SubstructureField to be such (e.g. LengthField, TypeField). This change also adds **kwargs to unpack() on all fields for consistency and expansion as needed in the future. Signed-off-by: Paul Osborne <Paul.Osborne@digi.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters