Skip to content

Commit fa6b689

Browse files
committed
[refactor] use class attributes for fixed recordType and recordLength
These are moved from the __init__() to class attributes. This pattern makes it less likely for users to accidentally initialise the class with the wrong recordType or recordLength, where these values are known beforehand. Class attributes are accessible by instances of the class, so the serialize() and parse() methods are unaffected. ### Further changes - added type annotations to attributes, marking them as being an enum, int, or float, along with their size in bits - fixed init types for some attributes - removed some unnecessary comments - added table UID in comments for some enums
1 parent cb8697b commit fa6b689

File tree

1 file changed

+209
-142
lines changed

1 file changed

+209
-142
lines changed

0 commit comments

Comments
 (0)