Files
intellecton/venv/lib/python3.12/site-packages/pathspec/__pycache__/backend.cpython-312.pyc
T

30 lines
1.9 KiB
Plaintext
Raw Normal View History

Ë
ãótdZddlmZddlmZmZmZddlmZedZ eeeegdfZ
Gdde «Z y )
a
This module defines the necessary classes and type hints for exposing the bare
minimum of the internal implementations for the pattern (regular expression)
matching backends. The exact structure of the backends is not solidified and is
subject to change.
é)ÚSequence)ÚCallableÚLiteralÚOptionalé)ÚPattern)ÚbestÚ hyperscanÚre2ÚsimpleÚ_Backendcó6eZdZdZdedeeeeeffdZ y)r
.. warning:: This class is not part of the public API. It is subject to
change.
The :class:`_Backend` class is the abstract base class defining how to match
files against patterns.
ÚfileÚreturncótt|jjd|jjd«)a
Check the file against the patterns.
*file* (:class:`str`) is the normalized file path to check.
Returns a :class:`tuple` containing whether to include *file* (:class:`bool`
or :data:`None`), and the index of the last matched pattern (:class:`int` or
:data:`None`).
ú.z".match_file() must be implemented.)ÚNotImplementedErrorÚ __class__Ú
__module__Ú __qualname__)Úselfrs úS/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pathspec/backend.pyÚ
match_filez_Backend.match_file&s<ô Ø
‡nÑÐ   $§.¡.×"=Ñ"=Ð!>ð?ðó ðóN)
Ú__name__rrÚ__doc__ÚstrÚtuplerÚboolÚintr©rrr
r
s,ñð