File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2424 from typing_extensions import TypeAlias
2525
2626from fileformats .core .typing import Self
27+ from fileformats .core .converter_helpers import SubtypeVar
2728from fileformats .core .utils import _excluded_subpackages
2829
2930from .classifier import Classifier
@@ -670,8 +671,6 @@ def convertible_from(
670671
671672 Parameters
672673 ----------
673- include_generic: bool
674- If True, only consider parent classes in the same namespace for conversion.
675674 union_sort_key : callable[[DataType], Any], optional
676675 A function used to sort the union of types. Defaults to sorting by the type name.
677676
@@ -698,6 +697,8 @@ def add_concrete(datatype: ty.Type[DataType]) -> None:
698697 if inspect .isabstract (datatype ):
699698 for subclass in datatype .subclasses ():
700699 add_concrete (subclass )
700+ elif issubclass (datatype , SubtypeVar ):
701+ concrete_datatypes .add (datatype .bound )
701702 else :
702703 concrete_datatypes .add (datatype )
703704
You can’t perform that action at this time.
0 commit comments