(self, v: Union[int, Slot])
| 299 | return vid |
| 300 | |
| 301 | def to_int_or_vid(self, v: Union[int, Slot]) -> IntOrVid: |
| 302 | if isinstance(v, Slot): |
| 303 | return IntOrVid.from_vid(self.slot_to_vid(v)) |
| 304 | return IntOrVid.from_literal(int(v)) |
| 305 | |
| 306 | def to_float_or_vid(self, v: Union[float, int, Slot]) -> FloatOrVid: |
| 307 | if isinstance(v, Slot): |
no test coverage detected