From dd3637d2f773578d5c06a16f7ca96359e10fd7bf Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 19 Feb 2023 12:34:59 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- CHANGELOG.md | 3 +++ test/test_doc.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc387c83..4e0f4531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,14 @@ - pdoc now skips constructors if they neither have a docstring nor any parameters. This improves display of classes that are not meant to be instantiated manually, for example when using PyO3. + ([#510](https://github.com/mitmproxy/pdoc/pull/510), @mhils) - Add a workaround to support inherited TypedDicts. ([#504](https://github.com/mitmproxy/pdoc/issues/504), @mhils) - `Variable.default_value_str` does not include the ` = ` prefix anymore. It will now emit a warning and return an empty string if `repr(value)` crashes. + ([#510](https://github.com/mitmproxy/pdoc/pull/510), @mhils) - Fix a CSS issue where the lower half of the navigation toggle would be unresponsive on mobile. + ([#510](https://github.com/mitmproxy/pdoc/pull/510), @mhils) ## 2023-01-06: pdoc 12.3.1 diff --git a/test/test_doc.py b/test/test_doc.py index eee13295..446baf1e 100644 --- a/test/test_doc.py +++ b/test/test_doc.py @@ -82,7 +82,9 @@ def __repr__(self): annotation=empty, default_value=Raising(), ) - with pytest.warns(match=r"repr\(module\.var\) raised an exception \(RuntimeError\(\)\)"): + with pytest.warns( + match=r"repr\(module\.var\) raised an exception \(RuntimeError\(\)\)" + ): assert not v.default_value_str