Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and mhils committed Feb 19, 2023
1 parent a269446 commit dd3637d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion test/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit dd3637d

Please sign in to comment.