# Position

## Attributes

<PyAttributes>

<PyAttribute name="chars" value="chars">
</PyAttribute>

<PyAttribute name="line" value="line">
</PyAttribute>

</PyAttributes>

## Functions

<PyFunction name="__init__" type="(chars, line) -> None" kind="constructor">

<PySourceCode>

```python
def __init__(self, chars: int, line: int) -> None:
    self.chars = chars
    self.line = line
```

</PySourceCode>

<div>

<PyParameter name="chars" type="int">
</PyParameter>

<PyParameter name="line" type="int">
</PyParameter>

</div>

<PyFunctionReturn type="None">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="start" type="() -> Position">

<PySourceCode>

```python
@classmethod
def start(cls) -> "Position":
    return cls(chars=0, line=1)
```

</PySourceCode>

<PyFunctionReturn type="dotenv.parser.Position">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="set" type="(other) -> None">

<PySourceCode>

```python
def set(self, other: "Position") -> None:
    self.chars = other.chars
    self.line = other.line
```

</PySourceCode>

<div>

<PyParameter name="other" type="Position">
</PyParameter>

</div>

<PyFunctionReturn type="None">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="advance" type="(string) -> None">

<PySourceCode>

```python
def advance(self, string: str) -> None:
    self.chars += len(string)
    self.line += len(re.findall(_newline, string))
```

</PySourceCode>

<div>

<PyParameter name="string" type="str">
</PyParameter>

</div>

<PyFunctionReturn type="None">
</PyFunctionReturn>

</PyFunction>
