Skip to content

Removed usage of FilterBase in public API typing; Replaced FilterBase._init with standard __init__#376

Merged
t20100 merged 3 commits intosilx-kit:mainfrom
t20100:update-_init
Feb 25, 2026
Merged

Removed usage of FilterBase in public API typing; Replaced FilterBase._init with standard __init__#376
t20100 merged 3 commits intosilx-kit:mainfrom
t20100:update-_init

Conversation

@t20100
Copy link
Member

@t20100 t20100 commented Feb 12, 2026

Follow-up of PR #373 to address review comment regarding use of _init.
Rework typing to use h5py.filters.FilterRefBase instead of hdf5plugin.FilterBase as base class type and update typing accordingly.

@t20100 t20100 requested a review from payno February 12, 2026 09:47
status = True
for filter_class in filter_classes:
filter_name = filter_class.filter_name
filter_name = cast(FilterBase, filter_class).filter_name
Copy link
Member

Choose a reason for hiding this comment

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

You just made me discover the cast 🤩

@t20100 t20100 merged commit f9284d8 into silx-kit:main Feb 25, 2026
4 checks passed
@t20100 t20100 deleted the update-_init branch February 25, 2026 10:22
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.

2 participants