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.
32 def function(default=None):
33 """Docstring comes first.
37 # FIXME: Some comment about why this function is crap but still in production.
40 if inner_imports.are_evil():
41 # Explains why we have this if.
42 # In great detail indeed.
44 return x.method1() # type: ignore
46 # This return is also commented for some reason.
50 # Explains why we use global state.
51 GLOBAL_STATE = {"a": a(1), "b": a(2), "c": a(3)}
55 # This time two lines.
59 """Docstring for class Foo. Example from Sphinx docs."""
61 #: Doc comment for class attribute Foo.bar.
62 #: It can have multiple lines.
65 flox = 1.5 #: Doc comment for Foo.flox. One line only.
68 """Docstring for class attribute Foo.baz."""
71 #: Doc comment for instance attribute qux.
75 """Docstring for instance attribute spam."""
78 #' <h1>This is pweave!</h1>
83 # This comment, for some reason \
84 # contains a trailing backslash.
85 async with X.open_async() as x: # Some more comments
86 result = await x.method1()
87 # Comment after ending a block.
89 print("A OK", file=sys.stdout)
90 # Comment between things.
94 # Some closing comments.
95 # Maybe Vim or Emacs directives for formatting.