def _validate_line(self, ob):
        super(LinearRefBase, self)._validate(ob)
        if not ['LinearRing', 'LineString', 'MultiLineString'] in ob.geom_type:
            raise TypeError("Only linear types support this operation")
dataset/ETHPy150Open Toblerity/Shapely/shapely/linref.py/LinearRefBase._validate_line/swapped operands of `in`