Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pathspec/_backends/re2/base.py: 91%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

11 statements  

1""" 

2This module provides the base implementation for the :module:`re2` backend. 

3 

4WARNING: The *pathspec._backends.re2* package is not part of the public API. Its 

5contents and structure are likely to change. 

6""" 

7from __future__ import annotations 

8 

9from typing import ( 

10 Optional) 

11 

12try: 

13 import re2 

14 re2_error = None 

15except ModuleNotFoundError as e: 

16 re2 = None 

17 re2_error = e 

18 

19re2_error: Optional[ModuleNotFoundError] 

20""" 

21*re2_error* (:class:`ModuleNotFoundError` or :data:`None`) is the re2 import 

22error. 

23"""