From: nikkie Date: Sun, 27 Dec 2020 15:18:35 +0000 (+0900) Subject: fix format_str() docstring to prevent users from running into NameError (#1885) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/c3df2c1a69c687d34f41478235c869d0526a46bd fix format_str() docstring to prevent users from running into NameError (#1885) --- diff --git a/src/black/__init__.py b/src/black/__init__.py index 4869057..5f0f897 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -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: ...