
    h@                     P   % S r SSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	  SSK
JrJr  SSKJrJr  SSKrSSKJrJrJrJr  Sr\R*                  SS S	:H  rS
\S\S\4S jrS
\S\S\4S jr\R*                  S	:  a  SSK
Jr  O\" S5      r\" SS5      rS\l         \" SS5      rS\l         \" SS5      rS\l         \" SS5      rS\l         \" SS5      rS\l         \" SS 5      r S!\ l         \" S"S#5      r!S$\!l         \" S%S&5      r"S'\"l         \" S(S)5      r#S*\#l         \" S+S,5      r$S-\$l         \" S.S/5      r%S0\%l         S1\S\&4S2 jr'\" S3S45      r(S5\(l         \" S6S75      r)S8\)l         \R*                  S	:  a
  \" S9S:5      r*O	S1\S\&4S; jr*S<\*l         \" S=S>5      r+S?\+l         \" S@SA5      r,SB\,l         \" SCSD5      r-SE\-l         \" SFSG5      r.SH\.l         \" SISJ5      r/SK\/l         \" SLSM5      r0SN\0l         \" SOSP5      r1SQ\1l         \" SRSS5      r2ST\2l         \" SUSV5      r3SW\3l         \" SXSY5      r4SZ\4l         \" S[S\5      r5S]\5l         \" S^S_5      r6\(       a
  S1\SS`4Sa jr7O	\" S^Sb5      r7Sc\7l         \" SdSe5      r8Sf\8l         \R*                  Sg:  a
  S1\SSh4Si jr9O	S1\SSh4Sj jr9Sk\9l         0 \Rt                  \Rv                  Rt                  _\Rx                  \Rv                  Rx                  _\Rz                  \Rv                  Rz                  _\R|                  \Rv                  R|                  _\R~                  \Rv                  R~                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _0 \R                  \Rv                  R                  _\R                  \O_\R                  \Q_\R                  \R                  _\R                  \T_\R                  \V_\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _\R                  \\_\R                  \R                  _\R                  \R                  _\R                  \R                  _\R                  \R                  _\R                  \Rv                  R                  _\R                  \Rv                  R                  _E\R                  \\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  0Erk\\\\\\   4      \lSl'    \Q" \kR                  5       5       H$  u  rnro\p" \\nR                  S5      =rrc  M  \o\k\r'   M&     g)mzLow-level introspection utilities for [`typing`][] members.

The provided functions in this module check against both the [`typing`][] and [`typing_extensions`][]
variants, if they exists and are different.
    N)dedent)FunctionTypeGenericAlias)AnyFinal)LiteralStringTypeAliasTypeTypeIs
deprecated)DEPRECATED_ALIASESNoneTypeis_annotatedis_anyis_classvaris_concatenateis_deprecatedis_final
is_generic
is_literalis_literalstringis_namedtupleis_never
is_newtypeis_nodefaultis_noreturnis_notrequiredis_paramspecis_paramspecargsis_paramspeckwargsis_readonlyis_requiredis_selfis_typealiasis_typealiastypeis_typeguard	is_typeis
is_typevaris_typevartupleis_union	is_unpack   )   
   memberfunction_namereturnc                 ~   [        [        U 5      n[        [        U 5      nU(       a7  U(       a0  [        [        U 5      [        [        U 5      L a  SU  3nO3SU  SU  3nO*U(       a  U(       d  SU  3nOU(       d  U(       a  SU  3nOSn[	        SU SU S35      n0 n[
        [        [        S.n[        XWU5        Xa   $ )	aE  Create a function checking that the function argument is the (unparameterized) typing :paramref:`member`.

The function will make sure to check against both the `typing` and `typing_extensions`
variants as depending on the Python version, the `typing_extensions` variant might be different.
For instance, on Python 3.9:

```pycon
>>> from typing import Literal as t_Literal
>>> from typing_extensions import Literal as te_Literal, get_origin

>>> t_Literal is te_Literal
False
>>> get_origin(t_Literal[1])
typing.Literal
>>> get_origin(te_Literal[1])
typing_extensions.Literal
```
zobj is typing.z or obj is typing_extensions.zobj is typing_extensions.False	
    def z&(obj: Any, /) -> bool:
        return 
    r   typingtyping_extensionshasattrr6   r7   getattrr   r   execr.   r/   	in_typingin_typing_extensions
check_code	func_codelocals_globals_s           R/var/www/html/env/lib/python3.13/site-packages/typing_inspection/typing_objects.py _compile_identity_check_functionrD   :   s    & 'I"#4f=)66"g.?&HH)&2J)&1NvhWJ	/%fX.
/09

 		 |  	I
 !G'*fSdeHg&!!    c           	         [        [        U 5      n[        [        U 5      nU(       a9  U(       a2  [        [        U 5      [        [        U 5      L a  SU  S3nO6SU  SU  S3nO,U(       a  U(       d  SU  S3nOU(       d  U(       a  SU  S3nOSn[	        SU S	U  S
U S35      n0 n[
        [        [        S.n[        XWU5        Xa   $ )a  Create a function checking that the function is an instance of the typing `member`.

The function will make sure to check against both the `typing` and `typing_extensions`
variants as depending on the Python version, the `typing_extensions` variant might be different.
zisinstance(obj, typing.)zisinstance(obj, (typing.z, typing_extensions.z))z"isinstance(obj, typing_extensions.r2   r3   z(obj: Any, /) -> 'TypeIs[z]':
        return r4   r5   r8   r<   s           rC   "_compile_isinstance_check_functionrH   g   s     'I"#4f=)66"g.?&HH26(!<J3F8;OPVxWYZJ	/.vha8
/9&C

 		0 9|  	I
 !G'*fSdeHg&!!rE   )r   	Annotatedr   z
Return whether the argument is the [`Annotated`][typing.Annotated] [special form][].

```pycon
>>> is_annotated(Annotated)
True
>>> is_annotated(Annotated[int, ...])
False
```
r   r   zm
Return whether the argument is the [`Any`][typing.Any] [special form][].

```pycon
>>> is_any(Any)
True
```
ClassVarr   z
Return whether the argument is the [`ClassVar`][typing.ClassVar] [type qualifier][].

```pycon
>>> is_classvar(ClassVar)
True
>>> is_classvar(ClassVar[int])
>>> False
```
Concatenater   z
Return whether the argument is the [`Concatenate`][typing.Concatenate] [special form][].

```pycon
>>> is_concatenate(Concatenate)
True
>>> is_concatenate(Concatenate[int, P])
False
```
r   r   z
Return whether the argument is the [`Final`][typing.Final] [type qualifier][].

```pycon
>>> is_final(Final)
True
>>> is_final(Final[int])
False
```
Genericr   z
Return whether the argument is the [`Generic`][typing.Generic] [special form][].

```pycon
>>> is_generic(Generic)
True
>>> is_generic(Generic[T])
False
```
Literalr   z
Return whether the argument is the [`Literal`][typing.Literal] [special form][].

```pycon
>>> is_literal(Literal)
True
>>> is_literal(Literal["a"])
False
```
	ParamSpecr   z
Return whether the argument is an instance of [`ParamSpec`][typing.ParamSpec].

```pycon
>>> P = ParamSpec('P')
>>> is_paramspec(P)
True
```
TypeVarr'   z
Return whether the argument is an instance of [`TypeVar`][typing.TypeVar].

```pycon
>>> T = TypeVar('T')
>>> is_typevar(T)
True
```
TypeVarTupler(   z
Return whether the argument is an instance of [`TypeVarTuple`][typing.TypeVarTuple].

```pycon
>>> Ts = TypeVarTuple('Ts')
>>> is_typevartuple(Ts)
True
```
Unionr)   a  
Return whether the argument is the [`Union`][typing.Union] [special form][].

This function can also be used to check for the [`Optional`][typing.Optional] [special form][],
as at runtime, `Optional[int]` is equivalent to `Union[int, None]`.

```pycon
>>> is_union(Union)
True
>>> is_union(Union[int, str])
False
```

!!! warning
    This does not check for unions using the [new syntax][types-union] (e.g. `int | str`).
objc                v    [        U [        5      =(       a#    [        U [        5      =(       a    [	        U S5      $ )a  Return whether the argument is a named tuple type.

This includes [`NamedTuple`][typing.NamedTuple] subclasses and classes created from the
[`collections.namedtuple`][] factory function.

```pycon
>>> class User(NamedTuple):
...     name: str
...
>>> is_namedtuple(User)
True
>>> City = collections.namedtuple('City', [])
>>> is_namedtuple(City)
True
>>> is_namedtuple(NamedTuple)
False
```
_fields)
isinstancetype
issubclasstupler9   rR   s    rC   r   r     s)    & c4 WZU%;WY@WWrE   r   r   z
Return whether the argument is the [`LiteralString`][typing.LiteralString] [special form][].

```pycon
>>> is_literalstring(LiteralString)
True
```
Neverr   zu
Return whether the argument is the [`Never`][typing.Never] [special form][].

```pycon
>>> is_never(Never)
True
```
NewTyper   c                    [        U S5      $ )N__supertype__)r9   rY   s    rC   r   r   M  s    sO,,rE   z
Return whether the argument is a [`NewType`][typing.NewType].

```pycon
>>> UserId = NewType("UserId", int)
>>> is_newtype(UserId)
True
```
	NoDefaultr   z
Return whether the argument is the [`NoDefault`][typing.NoDefault] sentinel object.

```pycon
>>> is_nodefault(NoDefault)
True
```
NoReturnr   z
Return whether the argument is the [`NoReturn`][typing.NoReturn] [special form][].

```pycon
>>> is_noreturn(NoReturn)
True
>>> is_noreturn(Never)
False
```
NotRequiredr   z
Return whether the argument is the [`NotRequired`][typing.NotRequired] [special form][].

```pycon
>>> is_notrequired(NotRequired)
True
```
ParamSpecArgsr   z
Return whether the argument is an instance of [`ParamSpecArgs`][typing.ParamSpecArgs].

```pycon
>>> P = ParamSpec('P')
>>> is_paramspecargs(P.args)
True
```
ParamSpecKwargsr   z
Return whether the argument is an instance of [`ParamSpecKwargs`][typing.ParamSpecKwargs].

```pycon
>>> P = ParamSpec('P')
>>> is_paramspeckwargs(P.kwargs)
True
```
ReadOnlyr    z
Return whether the argument is the [`ReadOnly`][typing.ReadOnly] [special form][].

```pycon
>>> is_readonly(ReadOnly)
True
```
Requiredr!   z
Return whether the argument is the [`Required`][typing.Required] [special form][].

```pycon
>>> is_required(Required)
True
```
Selfr"   zq
Return whether the argument is the [`Self`][typing.Self] [special form][].

```pycon
>>> is_self(Self)
True
```
	TypeAliasr#   z
Return whether the argument is the [`TypeAlias`][typing.TypeAlias] [special form][].

```pycon
>>> is_typealias(TypeAlias)
True
```
	TypeGuardr%   z
Return whether the argument is the [`TypeGuard`][typing.TypeGuard] [special form][].

```pycon
>>> is_typeguard(TypeGuard)
True
```
r
   r&   zy
Return whether the argument is the [`TypeIs`][typing.TypeIs] [special form][].

```pycon
>>> is_typeis(TypeIs)
True
```
r	   _is_typealiastype_innerzTypeIs[TypeAliasType]c                H    [        U 5      [        L=(       a    [        U 5      $ N)rV   r   rh   rY   s    rC   r$   r$     s    Cy,M1H1MMrE   r$   a'  
Return whether the argument is a [`TypeAliasType`][typing.TypeAliasType] instance.

```pycon
>>> type MyInt = int
>>> is_typealiastype(MyInt)
True
>>> MyStr = TypeAliasType("MyStr", str)
>>> is_typealiastype(MyStr):
True
>>> type MyList[T] = list[T]
>>> is_typealiastype(MyList[int])
False
```
Unpackr*   z
Return whether the argument is the [`Unpack`][typing.Unpack] [special form][].

```pycon
>>> is_unpack(Unpack)
True
>>> is_unpack(Unpack[Ts])
False
```
)r,      zTypeIs[deprecated]c                V    [        U [        R                  [        R                  45      $ rj   )rU   warningsr   r7   rY   s    rC   r   r     s!    # 3 35F5Q5QRSSrE   c                6    [        U [        R                  5      $ rj   )rU   r7   r   rY   s    rC   r   r      s    #0;;<<rE   a#  
Return whether the argument is a [`deprecated`][warnings.deprecated] instance.

This also includes the [`typing_extensions` backport][typing_extensions.deprecated].

```pycon
>>> is_deprecated(warnings.deprecated('message'))
True
>>> is_deprecated(typing_extensions('deprecated'))
True
```
r   )s__doc__collections.abccollections
contextlibresysr6   rn   textwrapr   typesr   r   r   r   r7   r   r	   r
   r   __all__version_info	_IS_PY310rD   rH   r   rV   r   r   r   r   r   r   r   r   r'   r(   r)   boolr   r   r   r   r   r   r   r   r   r    r!   r"   r#   r%   r&   rh   r$   r*   r   Hashableabc	Awaitable	CoroutineAsyncIterableAsyncIteratorIterableIterator
ReversibleSized	Container
CollectionCallableAbstractSetSet
MutableSetMappingMutableMappingSequenceMutableSequenceTuplerX   ListlistDequedequeset	FrozenSet	frozensetMappingViewKeysView	ItemsView
ValuesViewDictdictDefaultDictdefaultdictOrderedDictCounterChainMap	GeneratorAsyncGeneratorTypePatternMatchContextManagerAbstractContextManagerAsyncContextManagerAbstractAsyncContextManagerr   __annotations__itemsaliastargetr:   _namete_alias rE   rC   <module>r      s     	 
    ,   N N D Ra G+	*"] *"= *"]i *"Z"} "] "_k "@ wDzH 0^L	  
*%	: /z=I	  2-AQR	  ,GZ@	  .iF
	
  .iF
	
  2+~N  0	<H

  5^EVW  ,GZ@ $Xs X$ X4 4OEWX    ,GZ@  w3I|LJ- -4 -
  0^L  /z=I	  2-AQR  6oGYZ    88IK_`    /z=I  /z=I  +69
= 0^L  0^L  -X{C		  =_Ngh  
Nc N)@ N :/K]^    -X{C			  wT3 T&: T
=3 =&: = +3
OO[__--+3
koo//+3 koo//+3 +//77	+3
 +//77+3 OO[__--+3 OO[__--+3 {11+3 LL+//''+3 koo//+3 {11+3 OO[__--+3 +++3 {11+3  NNKOO++!+3" ;??99#+3$ OO[__--%+3& KOO;;'+3( LL%)+3* KK++3, LL+##-+3. JJ/+30 i1+32 333+34 OO[__--5+36 koo//7+38 {119+3: KK;+3< //=+3> //?+3@ NNK''A+3B OO[))C+3D koo//E+3F ;??99G+3H KK
NNBJJ
LL"((
:<<

 F FS+3 E$sDI~./ +X A ,2245ME6-u{{DAAN'-8$ 6rE   