API reference

python:irx:irx.diagnostics.source_location_from_loc

function source_location_from_loc

source_location_from_loc(loc: object | None) -> SourceLocation | None

Source: packages/irx/src/irx/diagnostics.py:190

Convert one arbitrary location-like object to SourceLocation.

Parameters

Returns

Type: SourceLocation | None

Search documentation

Type to search.