(root)/
Python-3.12.0/
Lib/
test/
inspect_stock_annotations.py
       1  a:int=3
       2  b:str="foo"
       3  
       4  class ESC[4;38;5;81mMyClass:
       5      a:int=4
       6      b:str="bar"
       7      def __init__(self, a, b):
       8          self.a = a
       9          self.b = b
      10      def __eq__(self, other):
      11          return isinstance(other, MyClass) and self.a == other.a and self.b == other.b
      12  
      13  def function(a:int, b:str) -> MyClass:
      14      return MyClass(a, b)
      15  
      16  
      17  def function2(a:int, b:"str", c:MyClass) -> MyClass:
      18      pass
      19  
      20  
      21  def function3(a:"int", b:"str", c:"MyClass"):
      22      pass
      23  
      24  
      25  class ESC[4;38;5;81mUnannotatedClass:
      26      pass
      27  
      28  def unannotated_function(a, b, c): pass