-type_stub
+type_stubsThis module has an accompanying .pyi file with type stubs.
1""" 2This module has an accompanying .pyi file with type stubs. 3""" 4 - 5 - 6def func(x, y): - 7 """A simple function.""" - 8 - 9 -10var = [] -11"""A simple variable.""" -12 -13 -14class Class: -15 attr = 42 -16 """An attribute""" -17 -18 def meth(self, y): -19 """A simple method.""" -20 -21 class Subclass: -22 attr = "42" -23 """An attribute""" -24 -25 def meth(self, y): -26 """A simple method.""" -27 -28 def no_type_annotation(self, z): -29 """A method not present in the .pyi file.""" -30 -31 def overloaded(self, x): -32 """An overloaded method.""" + 5from ._utils import ImportedClass + 6 + 7 + 8def func(x, y): + 9 """A simple function.""" +10 +11 +12var = [] +13"""A simple variable.""" +14 +15 +16class Class: +17 attr = 42 +18 """An attribute""" +19 +20 def meth(self, y): +21 """A simple method.""" +22 +23 class Subclass: +24 attr = "42" +25 """An attribute""" +26 +27 def meth(self, y): +28 """A simple method.""" +29 +30 def no_type_annotation(self, z): +31 """A method not present in the .pyi file.""" +32 +33 def overloaded(self, x): +34 """An overloaded method.""" +35 +36 +37__all__ = [ +38 "func", +39 "var", +40 "Class", +41 "ImportedClass", +42]
-
- 15class Class:
-16 attr = 42
-17 """An attribute"""
-18
-19 def meth(self, y):
-20 """A simple method."""
-21
-22 class Subclass:
-23 attr = "42"
-24 """An attribute"""
-25
-26 def meth(self, y):
-27 """A simple method."""
-28
-29 def no_type_annotation(self, z):
-30 """A method not present in the .pyi file."""
-31
-32 def overloaded(self, x):
-33 """An overloaded method."""
+ 17class Class:
+18 attr = 42
+19 """An attribute"""
+20
+21 def meth(self, y):
+22 """A simple method."""
+23
+24 class Subclass:
+25 attr = "42"
+26 """An attribute"""
+27
+28 def meth(self, y):
+29 """A simple method."""
+30
+31 def no_type_annotation(self, z):
+32 """A method not present in the .pyi file."""
+33
+34 def overloaded(self, x):
+35 """An overloaded method."""
@@ -213,8 +229,8 @@
-
- 29 def no_type_annotation(self, z):
-30 """A method not present in the .pyi file."""
+
@@ -255,8 +271,8 @@
-
-
-
15class Class: -16 attr = 42 -17 """An attribute""" -18 -19 def meth(self, y): -20 """A simple method.""" -21 -22 class Subclass: -23 attr = "42" -24 """An attribute""" -25 -26 def meth(self, y): -27 """A simple method.""" -28 -29 def no_type_annotation(self, z): -30 """A method not present in the .pyi file.""" -31 -32 def overloaded(self, x): -33 """An overloaded method.""" +@@ -213,8 +229,8 @@17class Class: +18 attr = 42 +19 """An attribute""" +20 +21 def meth(self, y): +22 """A simple method.""" +23 +24 class Subclass: +25 attr = "42" +26 """An attribute""" +27 +28 def meth(self, y): +29 """A simple method.""" +30 +31 def no_type_annotation(self, z): +32 """A method not present in the .pyi file.""" +33 +34 def overloaded(self, x): +35 """An overloaded method."""
29 def no_type_annotation(self, z): -30 """A method not present in the .pyi file.""" + @@ -255,8 +271,8 @@
2class ImportedClass: +3 """Docstring from imported py file - ideally this should be overridden.""" +
Docstring from imported py file - ideally this should be overridden.
+