chz/tiepin.py [373:379]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            try:
                value = ast.literal_eval(inst_str)
            except (ValueError, SyntaxError):
                raise CastError(f"Could not cast {repr(inst_str)} to {type_repr(typ)}") from None
            if is_subtype_instance(value, typ):
                return value
            raise CastError(f"Could not cast {repr(inst_str)} to {type_repr(typ)}")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



chz/tiepin.py [419:425]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            try:
                value = ast.literal_eval(inst_str)
            except (ValueError, SyntaxError):
                raise CastError(f"Could not cast {repr(inst_str)} to {type_repr(typ)}") from None
            if is_subtype_instance(value, typ):
                return value
        raise CastError(f"Could not cast {repr(inst_str)} to {type_repr(typ)}")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



