Skip to content

Add data attribute to UnmarshalError#29

Merged
davebelais merged 1 commit into
mainfrom
add-unmarshall-error-data
Jan 12, 2026
Merged

Add data attribute to UnmarshalError#29
davebelais merged 1 commit into
mainfrom
add-unmarshall-error-data

Conversation

@davebelais

@davebelais davebelais commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

This pull request updates the version of the sob package and introduces improvements to the UnmarshalError exception class to enhance error handling and memory efficiency.

Version bump:

  • Updated the package version in pyproject.toml from 2.1.5 to 2.2.0 to reflect new changes and improvements.

Error handling and class improvements:

  • Added __slots__ to the UnmarshalError class in src/sob/errors.py to optimize memory usage and prevent dynamic attribute creation.
  • Assigned the data attribute in the UnmarshalError constructor to store relevant marshalled data for improved error context.

@davebelais davebelais merged commit 936b6cc into main Jan 12, 2026
13 checks passed
@davebelais davebelais deleted the add-unmarshall-error-data branch January 12, 2026 18:52
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.

1 participant