| 1 |
""" |
| 2 |
This module provides the base implementation for the :module:`re2` backend. |
| 3 |
|
| 4 |
WARNING: The *pathspec._backends.re2* package is not part of the public API. Its |
| 5 |
contents and structure are likely to change. |
| 6 |
""" |
| 7 |
from __future__ import annotations |
| 8 |
|
| 9 |
from typing import ( |
| 10 |
Optional) # Replaced by `X | None` in 3.10. |
| 11 |
|
| 12 |
from ._base import ( |
| 13 |
re2_error) |
| 14 |
|
| 15 |
re2_error: Optional[Exception] # type: ignore[no-redef] |
| 16 |
""" |
| 17 |
*re2_error* (:class:`Exception` or :data:`None`) is the re2 import error. |
| 18 |
""" |