(root)/
Python-3.12.0/
Lib/
test/
pyclbr_input.py
       1  """Test cases for test_pyclbr.py"""
       2  
       3  def f(): pass
       4  
       5  class ESC[4;38;5;81mOther(ESC[4;38;5;149mobject):
       6      @classmethod
       7      def foo(c): pass
       8  
       9      def om(self): pass
      10  
      11  class ESC[4;38;5;81mB (ESC[4;38;5;149mobject):
      12      def bm(self): pass
      13  
      14  class ESC[4;38;5;81mC (ESC[4;38;5;149mB):
      15      foo = Other().foo
      16      om = Other.om
      17  
      18      d = 10
      19  
      20      # XXX: This causes test_pyclbr.py to fail, but only because the
      21      #      introspection-based is_method() code in the test can't
      22      #      distinguish between this and a genuine method function like m().
      23      #      The pyclbr.py module gets this right as it parses the text.
      24      #
      25      #f = f
      26  
      27      def m(self): pass
      28  
      29      @staticmethod
      30      def sm(self): pass
      31  
      32      @classmethod
      33      def cm(self): pass