ó
'![c           @  sž   d  Z  d d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d S(   s2   test detection of method which could be a functioniÿÿÿÿ(   t   print_functiont   Totoc           B  s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s   bla bal ablc         C  s   d |  _  d  S(   Ni   (   t   aaa(   t   self(    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   __init__	   s    c         C  s   |  j  ƒ  d S(   s4   this method is a real method since it access to selfN(   t   function_method(   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   regular_method   s    c         C  s   t  d ƒ d S(   s9   this method isn' a real method since it doesn't need selft   helloN(   t   print(   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR      s    (   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR      s   		t   Basec           B  s    e  Z d  Z d „  Z d „  Z RS(   s   an abstract classc         C  s   d |  _  d  S(   Ni   (   R   (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR      s    c         C  s
   t  ‚ d S(   s+   an abstract method, could not be a functionN(   t   NotImplementedError(   R   t   arg(    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   check   s    (   R	   R
   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR      s   	t   Subc           B  s   e  Z d  Z d „  Z RS(   s   a concrete classc         C  s
   | d k S(   s_   a concrete method, could not be a function since it need
        polymorphism benefits
        i    (    (   R   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR   #   s    (   R	   R
   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR       s   t   Superc           B  s   e  Z d  Z d Z d „  Z RS(   s   same as before without abstracti   c         C  s   t  |  j ƒ d S(   t   regularN(   R   t   attr(   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   method,   s    (   R	   R
   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR   )   s   t   Sub1c           B  s;   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s"   override method with need for selfc         C  s   t  d ƒ d S(   s   no i can not be a functioni*   N(   R   (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR   2   s    c         C  s   t  d ƒ d S(   s   no i can not be a functioni*   N(   R   (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   __len__6   s    c         C  s   t  d ƒ d S(   s   no i can not be a functioni*   N(   R   (   R   t   other(    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   __cmp__:   s    c         C  s   d S(   Ni   (    (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   __copy__>   s    c         C  s   d S(   Ni*   (    (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   __getstate__A   s    (   R	   R
   R   R   R   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR   0   s   				t   Propc           B  s   e  Z e d  „  ƒ Z RS(   c         C  s   d S(   s†   Don't emit no-self-use for properties.

        They can't be functions and they can be part of an
        API specification.
        i*   (    (   R   (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   countG   s    (   R	   R
   t   propertyR   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyR   E   s   N(
   R   t
   __future__R    t   objectR   R   R   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pylint/test/functional/no_self_use.pyt   <module>   s   	