location.py 234 B

123456789101112
  1. from typing import NamedTuple
  2. class FeatureLibLocation(NamedTuple):
  3. """A location in a feature file"""
  4. file: str
  5. line: int
  6. column: int
  7. def __str__(self):
  8. return f"{self.file}:{self.line}:{self.column}"