Release 0.5.0 Beta
Pre-release
Pre-release
Added prioritization logic for selecting AdvType based on the presence of tabs
- Updated the logic of the recognize_type method to handle cases where multiple matching AdvType instances exist.
- Now, if several types match the given parameters (frame, color, tab), preference is given to types whose tabs field is not None and contains the provided tab parameter.
- If multiple matching types have tabs, the MultipleTypesMatch exception is raised.
- If no types with a suitable tabs field are found, the standard selection logic is used.
Reason for changes:
Previously, the method did not consider the presence of tabs as an important criterion for prioritizing among multiple matching AdvType instances.