Skip to content

[ENH] experimental get_tag hybrid method callable on class and instance#560

Draft
fkiraly wants to merge 6 commits into
mainfrom
get_tag-hybridmethod
Draft

[ENH] experimental get_tag hybrid method callable on class and instance#560
fkiraly wants to merge 6 commits into
mainfrom
get_tag-hybridmethod

Conversation

@fkiraly

@fkiraly fkiraly commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR is an experimental design study that modifies get_tag and get_tags methods of BaseObject so it is callable on classes as well as on instances.

In the current case, get_tag gets rerouted to get_class_tag if called on a class, and get_tags similarly to get_class_tags.

Ultimately, this could allow get_tag and get_tags as the single interface point for tags.

@fkiraly fkiraly added API design API design & software architecture implementing framework Implementing core skbase framework enhancement Adding new functionality labels Jun 2, 2026
Comment thread skbase/utils/tests/test_hybridmethod.py Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API design API design & software architecture enhancement Adding new functionality implementing framework Implementing core skbase framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants