From c3df2c1a69c687d34f41478235c869d0526a46bd Mon Sep 17 00:00:00 2001 From: nikkie Date: Mon, 28 Dec 2020 00:18:35 +0900 Subject: [PATCH] fix format_str() docstring to prevent users from running into NameError (#1885) --- src/black/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ... -- 2.39.5