]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/tests/data/comments_non_breaking_space.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add '.vim/bundle/black/' from commit '2f3fa1f6d0cbc2a3f31c7440c422da173b068e7b'
[etc/vim.git] / .vim / bundle / black / tests / data / comments_non_breaking_space.py
1 from .config import (  ConfigTypeAttributes,    Int,    Path,    # String,
2     # DEFAULT_TYPE_ATTRIBUTES,
3 )
4
5 result = 1  # A simple comment
6 result = (    1, ) # Another one
7
8 result = 1    # type: ignore
9 result = 1# This comment is talking about type: ignore
10 square = Square(4) # type: Optional[Square]
11
12 def function(a:int=42):
13     """ This docstring is already formatted
14        a
15        b
16     """
17     #    There's a NBSP + 3 spaces before
18     #    And 4 spaces on the next line
19     pass
20
21 # output
22 from .config import (
23     ConfigTypeAttributes,
24     Int,
25     Path,  # String,
26     # DEFAULT_TYPE_ATTRIBUTES,
27 )
28
29 result = 1  # A simple comment
30 result = (1,)  # Another one
31
32 result = 1  #  type: ignore
33 result = 1  # This comment is talking about type: ignore
34 square = Square(4)  #  type: Optional[Square]
35
36
37 def function(a: int = 42):
38     """This docstring is already formatted
39     a
40     b
41     """
42     #    There's a NBSP + 3 spaces before
43     #    And 4 spaces on the next line
44     pass