+
    ÆÚjB  ã                  óð   € R t ^ RIHt ^ RIHtHt ^ RIHtHtH	t	H
t
HtHt ^ RIHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHt ^ RIHtH t  ]	! RRR7      t!  ! R R]],          4      t"R# )aQ  
This module provides :class:`.GitIgnoreSpec` which replicates *.gitignore*
behavior, and handles edge-cases where Git's behavior differs from what's
documented. Git allows including files from excluded directories which directly
contradicts the documentation. This uses :class:`.GitIgnoreSpecPattern` to fully
replicate Git's handling.
)Úannotations)ÚIterableÚSequence)ÚCallableÚOptionalÚTypeVarÚUnionÚcastÚoverload)ÚBackendNamesHintÚ_BackendÚ_TestBackendFactoryHint©Úmake_gitignore_backend)ÚPathSpec)ÚPattern)ÚGitIgnoreBasicPattern)ÚGitIgnoreSpecPattern)ÚAnyStrÚoverride)Ú_is_iterableÚlookup_patternÚSelfÚGitIgnoreSpec)Úboundc                  óä   a € ] tR t^1tRtR V 3R llt]]RRRR/R R ll4       4       t]]RRRRR/R	 R
 lll4       4       t]	]RRRRR/R V 3R llll4       4       t]	]
R R l4       4       tRtV ;t# )r   z¯
The :class:`GitIgnoreSpec` class extends :class:`.PathSpec` to replicate
*gitignore* behavior. This is uses :class:`.GitIgnoreSpecPattern` to fully
replicate Git's handling.
c               ó    € V ^8„  d   QhRRRR/# )é   ÚotherÚobjectÚreturnÚbool© )Úformats   "Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/pathspec/gitignore.pyÚ__annotate__ÚGitIgnoreSpec.__annotate__8   s   € ÷ ñ ˜ð  Dñ ó    c                óŠ   <€ \        V\        4      '       d   \        SV `  V4      # \        V\        4      '       d   R# \
        # )zÑ
Tests the equality of this gitignore-spec with *other* (:class:`.GitIgnoreSpec`)
by comparing their :attr:`self.patterns <.PathSpec.patterns>` attributes. A
non-:class:`GitIgnoreSpec` will not compare equal.
F)Ú
isinstancer   ÚsuperÚ__eq__r   ÚNotImplemented)Úselfr   Ú	__class__s   &&€r$   r+   ÚGitIgnoreSpec.__eq__8   s7   ø€ ô �”}×%Ò%Ü
‰'‰.˜Ó
ÐÜ�%œ×"Ò"Ù
ä
Ðr'   ÚbackendNÚ_test_backend_factoryc               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# )r   Úclsú
type[Self]Úpattern_factoryú<Union[str, type[Pattern], Callable[[AnyStr], Pattern], None]ÚlinesúIterable[AnyStr]r0   ú"Union[BackendNamesHint, str, None]r1   r   r    r   r"   )r#   s   "r$   r%   r&   H   sD   € ÷ ñ ØðàOðð 
ðð
 .ðð 1ðð ñr'   c               	ó   € R # ©Nr"   )r3   r5   r7   r0   r1   s   &&&$$r$   Ú
from_linesÚGitIgnoreSpec.from_linesF   ó   € ñ r'   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# ©r   r3   r4   r7   r8   r5   r6   r0   r9   r1   r   r    r   r"   )r#   s   "r$   r%   r&   T   sE   € ÷ ñ Øðà	ðð Pðð
 .ðð 1ðð ñr'   c               	ó   € R # r;   r"   )r3   r7   r5   r0   r1   s   &&&$$r$   r<   r=   R   r>   r'   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# r@   r"   )r#   s   "r$   r%   r&   `   sE   € ÷ 7ñ 7Øð7à	ð7ð Pð7ð
 .ð7ð 1ð7ð ñ7r'   c          	     ó°  <€ \        V\        \        34      '       g   \        V4      '       d   \	        V4      '       d   YrVf   \
        pM2VR8X  d   \
        pM$\        V\        4      '       d   \        V4      pMTp\        V\        4      '       d1   \        V\        4      '       d   \        RV: RV R\         R24      h\        SV `1  WQW4R7      pV# )ap  
Compiles the pattern lines.

*lines* (:class:`~collections.abc.Iterable`) yields each uncompiled pattern
(:class:`str`). This simply has to yield each line, so it can be a
:class:`io.TextIOBase` (e.g., from :func:`open` or :class:`io.StringIO`) or
the result from :meth:`str.splitlines`.

*pattern_factory* does not need to be set for :class:`GitIgnoreSpec`. If
set, it should be either ``"gitignore"`` or :class:`.GitIgnoreSpecPattern`.
There is no guarantee it will work with any other pattern class. Default is
:data:`None` for :class:`.GitIgnoreSpecPattern`.

*backend* (:class:`str` or :data:`None`) is the pattern (regular expression)
matching backend to use. Default is :data:`None` for "best" to use the best
available backend. Priority of backends is: "re2", "hyperscan", "simple".
The "simple" backend is always available.

Returns the :class:`GitIgnoreSpec` instance.
Ú	gitignorezpattern_factory=z (resolved to z) cannot be z) because it will give unexpected results.)r0   r1   )r)   ÚstrÚbytesÚcallabler   r   r   ÚtypeÚ
issubclassr   Ú	TypeErrorr*   r<   )r3   r7   r5   r0   r1   Úuse_factoryr-   r.   s   &&&$$  €r$   r<   r=   ^   sÎ   ø€ ô< �œœe˜×%Ò%¬°%¯ª¼lÈ?×>[Ò>[à!�Eð ÒÜ%�;Ø˜+Ô%ô &�;Ü�/¤3×'Ò'Ü Ó0�;à €;ô ˆkœ4× Ò Ü�+Ô4×5Ò5ä	Ø�Ñ)¨¸°}ð EÜ&Ð'ð (ðó
ð ô 
‰Ñ	˜K¸Ð	Ó	m€$Ø	€+r'   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Únamer   ÚpatternszSequence[Pattern]r    r   r"   )r#   s   "r$   r%   r&   ›   s&   € ÷ 0ñ 0Øð0àð0ð ñ0r'   c                ó   € \        W4      # )aD  
.. warning:: This method is not part of the public API. It is subject to
        change.

Create the backend for the patterns.

*name* (:class:`str`) is the name of the backend.

*patterns* (:class:`~collections.abc.Sequence` of :class:`.Pattern`)
contains the compiled patterns.

Returns the backend (:class:`._Backend`).
r   )rM   rN   s   &&r$   Ú_make_backendÚGitIgnoreSpec._make_backend™   s   € ô& 
  Ó	/Ð/r'   r"   r;   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r+   r
   Úclassmethodr<   r   ÚstaticmethodrP   Ú__static_attributes__Ú__classcell__)r.   s   @r$   r   r   1   sÄ   ø† ñ÷ð ð Øðð
 15ðð 48öó ó ðð Øñð
 15ðð 48÷ó ó ðð Øñ7ð
 15ð7ð 48÷7ò 7ó ó ð7ðr Øô0ó ó ö0r'   N)#rV   Ú
__future__r   Úcollections.abcr   r   Útypingr   r   r   r   r	   r
   Úpathspec.backendr   r   r   Úpathspec._backends.aggr   Úpathspec.pathspecr   Úpathspec.patternr   Ú!pathspec.patterns.gitignore.basicr   Ú pathspec.patterns.gitignore.specr   Úpathspec._typingr   r   Úpathspec.utilr   r   r   r   r"   r'   r$   Ú<module>rf      sr   ðñõ #÷÷÷ ÷ñ õõõ
õõ÷÷ñ ˆv˜_Ô-€ðô{0�HÐ1Õ2ö {0r'   