Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pathspec/_backends/hyperscan/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:`hyperscan` 

3library. 

4 

5WARNING: The *pathspec._backends.hyperscan* package is not part of the public 

6API. Its contents and structure are likely to change. 

7""" 

8from __future__ import annotations 

9 

10from typing import ( 

11 Optional) 

12 

13try: 

14 import hyperscan 

15 hyperscan_error = None 

16except ModuleNotFoundError as e: 

17 hyperscan = None 

18 hyperscan_error = e 

19 

20hyperscan_error: Optional[ModuleNotFoundError] 

21""" 

22*hyperscan_error* (:class:`ModuleNotFoundError` or :data:`None`) is the 

23hyperscan import error. 

24"""