+
    ,jn                    N    ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt  ! R R4      t	R# )    )annotations)ListOptional)Platform)PyLockPlatformc                      ] tR t^t$ RtR]R&   RR R llt]R R l4       t]R	 R
 l4       t	]R R l4       t
]R R l4       tR R ltR R ltRtR# )LockPlatformz
Represents a platform in a lock file.

This provides access to the platform name, the underlying conda subdir,
and any virtual packages associated with the platform.
r   _innerNc               (    V ^8  d   QhRRRRRRRR/# )	   namestrsubdirzOptional[Platform]virtual_packageszOptional[List[str]]returnNone )formats   "5lib/python3.14/site-packages/rattler/lock/platform.py__annotate__LockPlatform.__annotate__   s2     
 

 #
 .	

 

    c                R    \        TV'       d   VP                  MRV4      V n        R# )a  
Create a new lock platform.

Args:
    name: The name of the platform (e.g., "linux-64", "osx-arm64").
    subdir: The underlying conda platform. If not provided, it is
            automatically determined from the name.
    virtual_packages: The list of virtual packages for this platform.
                      Defaults to an empty list.

Examples
--------
```python
>>> from rattler import LockPlatform
>>> platform = LockPlatform("linux-64")
>>> platform.name
'linux-64'
>>>
```
N)r   r
   )selfr   r   r   s   &&&&r   __init__LockPlatform.__init__   s!    4 %#FMM
r   c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   r   3   s        c  r   c                .    V P                   P                  # )z
The name of the platform (e.g., "linux-64", "osx-arm64").

Examples
--------
```python
>>> from rattler import LockPlatform
>>> platform = LockPlatform("linux-64")
>>> platform.name
'linux-64'
>>>
```
)r
   r   r   s   &r   r   LockPlatform.name2   s     {{r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   D   s     > > >r   c                V    \         P                  ! V P                  P                  4      # )z
The underlying conda subdir/platform.

Examples
--------
```python
>>> from rattler import LockPlatform
>>> platform = LockPlatform("linux-64")
>>> platform.subdir
Platform(linux-64)
>>>
```
)r   _from_py_platformr
   r   r    s   &r   r   LockPlatform.subdirC   s     ))$++*<*<==r   c                   V ^8  d   QhRR/# )r   r   z	List[str]r   )r   s   "r   r   r   U   s     , ,) ,r   c                .    V P                   P                  # )z
The list of virtual packages for this platform.

Examples
--------
```python
>>> from rattler import LockPlatform
>>> platform = LockPlatform("linux-64", virtual_packages=["__glibc=2.17"])
>>> platform.virtual_packages
['__glibc=2.17']
>>>
```
)r
   r   r    s   &r   r   LockPlatform.virtual_packagesT   s     {{+++r   c                    V ^8  d   QhRRRR/# )r   py_lock_platformr   r   r	   r   )r   s   "r   r   r   f   s      n  r   c                4    V P                  V 4      pWn        V# )z:
Construct a LockPlatform from FFI PyLockPlatform object.
)__new__r
   )clsr*   platforms   && r   _from_py_lock_platform#LockPlatform._from_py_lock_platforme   s    
 ;;s#*r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   n   s     3 3# 3r   c                "    RV P                    R2# )z/
Returns a representation of the LockPlatform.
zLockPlatform(name='z')r   r    s   &r   __repr__LockPlatform.__repr__n   s     %TYYKr22r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   t   s       r   c                    V P                   # )z6
Returns a string representation of the LockPlatform.
r3   r    s   &r   __str__LockPlatform.__str__t   s     yyr   )r
   )NN)__name__
__module____qualname____firstlineno____doc____annotations__r   propertyr   r   r   classmethodr/   r4   r8   __static_attributes__r   r   r   r	   r	      st     
@      > >  , ,   3 r   r	   N)

__future__r   typingr   r   rattler.platform.platformr   rattler.rattlerr   r	   r   r   r   <module>rG      s    " ! . *p pr   