Extra blank lines may be used (sparingly) to separate groups of related functions. Blank lines may be omitted between a bunch of related one-liners (e.g. a set of dummy implementations).
Since the one-liner @overloads are only there for the types, maybe it doesn't make sense separating them into a new section.
black --preview accepts both styles (but fixes deviations with 2 lines)
Currently, pycodestyle suggests
Should it suggest
instead?
From https://peps.python.org/pep-0008/#blank-lines
Since the one-liner
@overload
s are only there for the types, maybe it doesn't make sense separating them into a new section.black --preview
accepts both styles (but fixes deviations with 2 lines)