ó
j·Ã^c           @   sS   d  d l  m Z e r9 d  d l m Z d  d l m Z n  d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   MYPY_CHECK_RUNNING(   t   Optional(   t   FormatControlt   SelectionPreferencesc           B   s#   e  Z d  Z e d e d d „ Z RS(   sd   
    Encapsulates the candidate selection preferences for downloading
    and installing files.
    c         C   sF   | d k r t } n  | |  _ | |  _ | |  _ | |  _ | |  _ d S(   sw  Create a SelectionPreferences object.

        :param allow_yanked: Whether files marked as yanked (in the sense
            of PEP 592) are permitted to be candidates for install.
        :param format_control: A FormatControl object or None. Used to control
            the selection of source packages / binary packages when consulting
            the index and links.
        :param prefer_binary: Whether to prefer an old, but valid, binary
            dist over a new source dist.
        :param ignore_requires_python: Whether to ignore incompatible
            "Requires-Python" values in links. Defaults to False.
        N(   t   Nonet   Falset   allow_yankedt   allow_all_prereleasest   format_controlt   prefer_binaryt   ignore_requires_python(   t   selfR   R   R   R	   R
   (    (    s5   site-packages/pip/_internal/models/selection_prefs.pyt   __init__   s    					N(   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    s5   site-packages/pip/_internal/models/selection_prefs.pyR      s
   	N(   t   pip._internal.utils.typingR    t   typingR   t#   pip._internal.models.format_controlR   t   objectR   (    (    (    s5   site-packages/pip/_internal/models/selection_prefs.pyt   <module>   s   