ó
'![c           @   sa   d  Z  d d d g Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z	 d S(   s    Errors for invalid slice indicesi   i   i   c           C   s   t  t t d … S(   s   functions used as indicesN(   t   TESTLISTt   idt   None(    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function1   s    c           C   s   t  d d d … S(   s   strings used as indicest   0t   1N(   R    R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function2   s    c          C   s*   d t  f d „  ƒ  Y}  t |  ƒ  d d … S(   s%   class without __index__ used as indext   NoIndexTestc           B   s   e  Z d  Z RS(   s   Class with no __index__ method(   t   __name__t
   __module__t   __doc__(    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyR      s   N(   t   objectR    R   (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function3   s    c           C   s   t  d d d … S(   s   integers used as indicesi    (   R    (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function4   s    c           C   s   t  d d d … S(   s   None used as indicesN(   R    R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function5   s    c          C   s*   d t  f d „  ƒ  Y}  t |  ƒ  d d … S(   s"   class with __index__ used as indext	   IndexTestc           B   s   e  Z d  Z d „  Z RS(   s   Class with __index__ methodc         S   s   d S(   s7   Allow objects of this class to be used as slice indicesi    (    (   t   self(    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   __index__&   s    (   R   R	   R
   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyR   $   s   N(   R   R    R   (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function6"   s    c          C   s@   d t  f d „  ƒ  Y}  d |  f d „  ƒ  Y} t | ƒ  d d … S(   s0   class with __index__ in superclass used as indext	   IndexTypec           B   s   e  Z d  Z d „  Z RS(   s   Class with __index__ methodc         S   s   d S(   s7   Allow objects of this class to be used as slice indicesi    (    (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyR   0   s    (   R   R	   R
   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyR   .   s   t   IndexSubTypec           B   s   e  Z d  Z RS(   s   Class with __index__ in parent(   R   R	   R
   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyR   4   s   N(   R   R    R   (   R   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function7,   s    c           C   s   t  t d d d ƒ S(   s   slice object used as indexi   i   i   (   R    t   slice(    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt	   function8:   s    N(
   R
   R    R   R   R   R   R   R   R   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/invalid_slice_index.pyt   <module>   s   			
			
	