]> git.madduck.net Git - etc/vim.git/commitdiff

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:

fix format_str() docstring to prevent users from running into NameError (#1885)
authornikkie <takuyafjp+develop@gmail.com>
Sun, 27 Dec 2020 15:18:35 +0000 (00:18 +0900)
committerGitHub <noreply@github.com>
Sun, 27 Dec 2020 15:18:35 +0000 (07:18 -0800)
src/black/__init__.py

index 48690573810373ae94123839474c29ea772e9630..5f0f89719f927d25327baff73d20dab7f81f13e1 100644 (file)
@@ -986,7 +986,7 @@ def format_str(src_contents: str, *, mode: Mode) -> FileContent:
     allowed.  Example:
 
     >>> import black
-    >>> print(black.format_str("def f(arg:str='')->None:...", mode=Mode()))
+    >>> print(black.format_str("def f(arg:str='')->None:...", mode=black.Mode()))
     def f(arg: str = "") -> None:
         ...