All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
5 # Has many lines. Many, many lines.
6 # Many, many, many lines.
9 Possibly also many, many lines.
16 from b.c import X # some noqa comment
24 # Some comment before a function.
27 def function(default=None):
28 """Docstring comes first.
32 # FIXME: Some comment about why this function is crap but still in production.
35 if inner_imports.are_evil():
36 # Explains why we have this if.
37 # In great detail indeed.
39 return x.method1() # type: ignore
41 # This return is also commented for some reason.
45 # Explains why we use global state.
46 GLOBAL_STATE = {"a": a(1), "b": a(2), "c": a(3)}
50 # This time two lines.
54 """Docstring for class Foo. Example from Sphinx docs."""
56 #: Doc comment for class attribute Foo.bar.
57 #: It can have multiple lines.
60 flox = 1.5 #: Doc comment for Foo.flox. One line only.
63 """Docstring for class attribute Foo.baz."""
66 #: Doc comment for instance attribute qux.
70 """Docstring for instance attribute spam."""
73 #' <h1>This is pweave!</h1>
78 # This comment, for some reason \
79 # contains a trailing backslash.
80 async with X.open_async() as x: # Some more comments
81 result = await x.method1()
82 # Comment after ending a block.
84 print("A OK", file=sys.stdout)
85 # Comment between things.
89 # Some closing comments.
90 # Maybe Vim or Emacs directives for formatting.