```python
def line_number(block: str) -> str:
    return "\n".join(str(i + 1) + ":" + line for i, line in enumerate(block.splitlines()))
```