Skip to content

Commit

Permalink
Merge pull request #175 from rafa-guedes/main
Browse files Browse the repository at this point in the history
Fix: RemovedInSphinx80Warning
  • Loading branch information
mansenfranzen authored Dec 27, 2023
2 parents fc53c29 + f6867ea commit e6a2146
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Bugfix
`PEP 420 <https://peps.python.org/pep-0420/>`__ without ``__init_.py`` to
match with other extensions.

Internal
~~~~~~~~

- Fix deprecation warning for tuple interface of ``ObjectMember`` in
``directives/autodocumenters.py``.

Contributors
~~~~~~~~~~~~

Expand All @@ -39,6 +45,11 @@ Contributors
`#176 <https://github.com/mansenfranzen/autodoc_pydantic/issues/176>`__ and
`daquinteroflex <https://github.com/daquinteroflex>`__ for testing and
providing feedback.
- Thanks to `rafa-guedes <https://github.com/rafa-guedes>`__ for providing a PR
to fix a deprecation warning for tuple interface of ``ObjectMember`` in
``directives/autodocumenters.py``
`#174 <https://github.com/mansenfranzen/autodoc_pydantic/issues/174>`__ and
`j-carson <https://github.com/j-carson>`__ for reporting it.

v2.0.1 - 2023-08-01
-------------------
Expand Down
3 changes: 2 additions & 1 deletion sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def get_filtered_member_names(self) -> Set[str]:
"""

return {x[0] for x in self._documenter.get_object_members(True)[1]}
object_members = self._documenter.get_object_members(True)[1]
return {x.__name__ for x in object_members}

def resolve_inherited_validator_reference(self, ref: str) -> str:
"""Provide correct validator reference in case validator is inherited
Expand Down

0 comments on commit e6a2146

Please sign in to comment.