Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to asdf-format#1561 the types supported by a converter that doesn't support any tags that are supported by the extnesion were ignored. The modifications in that PR checked if the converter implemented 'select_tag' and if not ignored the types. However if the converter implemented 'select_tag' the converter types were indexed (as the converter could return None from 'select_tag' and defer to a new converter). If a converter inherits from Converter it gains the select_tag method from the parent Converter class (which provides documentation of the method but doesn't implement functionality that is otherwise covered by ConverterProxy). This creates an issue when indexing the converter tags/types if a converter is included in an extension that doesn't list support for the tags supported by the converter. The changes included here check if 'select_tag' is implemented by a subclass of Converter. If overwritten, the types of the converter are indexed (to allow the converter to defer conversion). However, if 'select_tag' is merely inherited by Converter, the types supported by the converter are ignored (agreeing with behavior prior to asdf-format#1561).
- Loading branch information