# Literal

## Attributes

<PyAttributes>

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

</PyAttributes>

## Functions

<PyFunction name="__init__" type="(value) -> None" kind="constructor">

<PySourceCode>

```python
def __init__(self, value: str) -> None:
    self.value = value
```

</PySourceCode>

<div>

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

</div>

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

</PyFunction>

<PyFunction name="__repr__" type="() -> str">

<PySourceCode>

```python
def __repr__(self) -> str:
    return f"Literal(value={self.value})"
```

</PySourceCode>

<PyFunctionReturn type="str">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="__eq__" type="(other) -> bool">

<PySourceCode>

```python
def __eq__(self, other: object) -> bool:
    if not isinstance(other, self.__class__):
        return NotImplemented
    return self.value == other.value
```

</PySourceCode>

<div>

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

</div>

<PyFunctionReturn type="bool">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="__hash__" type="() -> int">

<PySourceCode>

```python
def __hash__(self) -> int:
    return hash((self.__class__, self.value))
```

</PySourceCode>

<PyFunctionReturn type="int">
</PyFunctionReturn>

</PyFunction>

<PyFunction name="resolve" type="(env) -> str">

<PySourceCode>

```python
def resolve(self, env: Mapping[str, Optional[str]]) -> str:
    return self.value
```

</PySourceCode>

<div>

<PyParameter name="env" type="Mapping[str, Optional[str]]">
</PyParameter>

</div>

<PyFunctionReturn type="str">
</PyFunctionReturn>

</PyFunction>
