Skip to content

Commit

Permalink
Bump the dependencies group with 11 updates (#672)
Browse files Browse the repository at this point in the history
* Bump the dependencies group with 11 updates

Bumps the dependencies group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [cachetools](https://github.com/tkem/cachetools) | `5.3.2` | `5.3.3` |
| [coverage[toml]](https://github.com/nedbat/coveragepy) | `7.4.1` | `7.4.3` |
| [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.97.4` | `6.98.15` |
| [markupsafe](https://github.com/pallets/markupsafe) | `2.1.4` | `2.1.5` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.0.0` | `8.0.2` |
| [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.3.0` |
| [tox](https://github.com/tox-dev/tox) | `4.12.1` | `4.13.0` |
| [types-docutils](https://github.com/python/typeshed) | `0.20.0.20240201` | `0.20.0.20240227` |
| [types-setuptools](https://github.com/python/typeshed) | `69.0.0.20240125` | `69.1.0.20240301` |
| [typing-extensions](https://github.com/python/typing_extensions) | `4.9.0` | `4.10.0` |
| [virtualenv](https://github.com/pypa/virtualenv) | `20.25.0` | `20.25.1` |


Updates `cachetools` from 5.3.2 to 5.3.3
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](tkem/cachetools@v5.3.2...v5.3.3)

Updates `coverage[toml]` from 7.4.1 to 7.4.3
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.4.1...7.4.3)

Updates `hypothesis` from 6.97.4 to 6.98.15
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.97.4...hypothesis-python-6.98.15)

Updates `markupsafe` from 2.1.4 to 2.1.5
- [Release notes](https://github.com/pallets/markupsafe/releases)
- [Changelog](https://github.com/pallets/markupsafe/blob/main/CHANGES.rst)
- [Commits](pallets/markupsafe@2.1.4...2.1.5)

Updates `pytest` from 8.0.0 to 8.0.2
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.0.0...8.0.2)

Updates `ruff` from 0.1.15 to 0.3.0
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.1.15...v0.3.0)

Updates `tox` from 4.12.1 to 4.13.0
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.12.1...4.13.0)

Updates `types-docutils` from 0.20.0.20240201 to 0.20.0.20240227
- [Commits](https://github.com/python/typeshed/commits)

Updates `types-setuptools` from 69.0.0.20240125 to 69.1.0.20240301
- [Commits](https://github.com/python/typeshed/commits)

Updates `typing-extensions` from 4.9.0 to 4.10.0
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](python/typing_extensions@4.9.0...4.10.0)

Updates `virtualenv` from 20.25.0 to 20.25.1
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](pypa/virtualenv@20.25.0...20.25.1)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: coverage[toml]
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: hypothesis
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: markupsafe
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: types-docutils
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: types-setuptools
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: typing-extensions
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: virtualenv
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* [autofix.ci] apply automated fixes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and autofix-ci[bot] authored Mar 1, 2024
1 parent f75638f commit 7b07452
Show file tree
Hide file tree
Showing 28 changed files with 843 additions and 816 deletions.
1 change: 1 addition & 0 deletions examples/library-usage/foo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Example module. We use pure Python here, but this could also be a compiled native module.
"""

import enum


Expand Down
1 change: 1 addition & 0 deletions pdoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ def bark(self, loud: bool) -> None:
It is also possible to create `pdoc.doc.Module` objects directly and modify them before rendering.
You can find an example in [`examples/library-usage`](https://github.com/mitmproxy/pdoc/tree/main/examples/library-usage).
'''

from __future__ import annotations

__docformat__ = "markdown" # explicitly disable rST processing in the examples above.
Expand Down
5 changes: 4 additions & 1 deletion pdoc/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
This means they have a large set of attributes that are lazily computed on first access.
By convention, all attributes are read-only, although this is not enforced at runtime.
"""

from __future__ import annotations

from abc import ABCMeta
Expand Down Expand Up @@ -1030,7 +1031,9 @@ class Variable(Doc[None]):

kind = "variable"

default_value: Any | empty # technically Any includes empty, but this conveys intent.
default_value: (
Any | empty
) # technically Any includes empty, but this conveys intent.
"""
The variable's default value.
Expand Down
10 changes: 4 additions & 6 deletions pdoc/doc_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Parsing the AST is done to extract docstrings, type annotations, and variable declarations from `__init__`.
"""

from __future__ import annotations

import ast
Expand Down Expand Up @@ -51,18 +52,15 @@ def _get_source(obj: Any) -> str:


@overload
def parse(obj: types.ModuleType) -> ast.Module:
...
def parse(obj: types.ModuleType) -> ast.Module: ...


@overload
def parse(obj: types.FunctionType) -> ast.FunctionDef | ast.AsyncFunctionDef:
...
def parse(obj: types.FunctionType) -> ast.FunctionDef | ast.AsyncFunctionDef: ...


@overload
def parse(obj: type) -> ast.ClassDef:
...
def parse(obj: type) -> ast.ClassDef: ...


def parse(obj):
Expand Down
1 change: 1 addition & 0 deletions pdoc/doc_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[typing.ForwardRef](https://docs.python.org/3/library/typing.html#typing.ForwardRef) objects without raising an
exception.
"""

from __future__ import annotations

import functools
Expand Down
1 change: 1 addition & 0 deletions pdoc/docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
That being said, please keep the complexity low and make sure that changes are
accompanied by matching snapshot tests in `test/testdata/`.
"""

from __future__ import annotations

import base64
Expand Down
1 change: 1 addition & 0 deletions pdoc/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
that is it loads the correct module based on whatever the user specified,
and provides the rest of pdoc with some additional module metadata.
"""

from __future__ import annotations

from collections.abc import Iterable
Expand Down
1 change: 1 addition & 0 deletions pdoc/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
If you wish to disable the search functionality, you can pass `--no-search` when invoking pdoc.
"""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions pdoc/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
so we are content with the builtin `http.server` module.
It is a bit unergonomic compared to let's say flask, but good enough for our purposes.
"""

from __future__ import annotations

from collections.abc import Iterable
Expand Down
22 changes: 11 additions & 11 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
#
attrs==23.2.0
# via hypothesis
cachetools==5.3.2
cachetools==5.3.3
# via tox
chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
coverage[toml]==7.4.1
coverage[toml]==7.4.3
# via pytest-cov
distlib==0.3.8
# via virtualenv
filelock==3.13.1
# via
# tox
# virtualenv
hypothesis==6.97.4
hypothesis==6.98.15
# via pdoc (pyproject.toml)
iniconfig==2.0.0
# via pytest
jinja2==3.1.3
# via pdoc (pyproject.toml)
markupsafe==2.1.4
markupsafe==2.1.5
# via
# jinja2
# pdoc (pyproject.toml)
Expand All @@ -53,7 +53,7 @@ pygments==2.17.2
# via pdoc (pyproject.toml)
pyproject-api==1.6.1
# via tox
pytest==8.0.0
pytest==8.0.2
# via
# pdoc (pyproject.toml)
# pytest-cov
Expand All @@ -62,19 +62,19 @@ pytest-cov==4.1.0
# via pdoc (pyproject.toml)
pytest-timeout==2.2.0
# via pdoc (pyproject.toml)
ruff==0.1.15
ruff==0.3.0
# via pdoc (pyproject.toml)
sortedcontainers==2.4.0
# via hypothesis
tox==4.12.1
tox==4.13.0
# via pdoc (pyproject.toml)
types-docutils==0.20.0.20240201
types-docutils==0.20.0.20240227
# via types-pygments
types-pygments==2.17.0.20240106
# via pdoc (pyproject.toml)
types-setuptools==69.0.0.20240125
types-setuptools==69.1.0.20240301
# via types-pygments
typing-extensions==4.9.0
typing-extensions==4.10.0
# via mypy
virtualenv==20.25.0
virtualenv==20.25.1
# via tox
957 changes: 479 additions & 478 deletions test/testdata/demo_long.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/testdata/demo_long.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
You can have multiple sections in your module docstring,
which will also show up in the navigation.
"""

from __future__ import annotations

import abc
Expand Down
79 changes: 40 additions & 39 deletions test/testdata/demopackage.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,28 +86,29 @@ <h1 class="modulename">
<label class="view-source-button" for="mod-demopackage-view-source"><span>View Source</span></label>

<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos"> 1</span></a><span class="sd">&quot;&quot;&quot;A test package with a sub-package at `.subpackage`.&quot;&quot;&quot;</span>
</span><span id="L-2"><a href="#L-2"><span class="linenos"> 2</span></a><span class="kn">import</span> <span class="nn">demopackage2</span>
</span><span id="L-3"><a href="#L-3"><span class="linenos"> 3</span></a>
</span><span id="L-4"><a href="#L-4"><span class="linenos"> 4</span></a><span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">_child_e</span>
</span><span id="L-5"><a href="#L-5"><span class="linenos"> 5</span></a><span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">child_b</span>
</span><span id="L-6"><a href="#L-6"><span class="linenos"> 6</span></a><span class="kn">from</span> <span class="nn">._child_d</span> <span class="kn">import</span> <span class="n">Test</span>
</span><span id="L-7"><a href="#L-7"><span class="linenos"> 7</span></a><span class="kn">from</span> <span class="nn">.child_b</span> <span class="kn">import</span> <span class="n">B</span>
</span><span id="L-8"><a href="#L-8"><span class="linenos"> 8</span></a><span class="kn">from</span> <span class="nn">.child_c</span> <span class="kn">import</span> <span class="n">C</span>
</span><span id="L-9"><a href="#L-9"><span class="linenos"> 9</span></a>
</span><span id="L-10"><a href="#L-10"><span class="linenos">10</span></a><span class="k">if</span> <span class="n">demopackage2</span><span class="p">:</span>
</span><span id="L-11"><a href="#L-11"><span class="linenos">11</span></a> <span class="k">pass</span>
</span><span id="L-12"><a href="#L-12"><span class="linenos">12</span></a>
</span><span id="L-13"><a href="#L-13"><span class="linenos">13</span></a><span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
</span><span id="L-14"><a href="#L-14"><span class="linenos">14</span></a> <span class="s2">&quot;Test&quot;</span><span class="p">,</span>
</span><span id="L-15"><a href="#L-15"><span class="linenos">15</span></a> <span class="s2">&quot;B&quot;</span><span class="p">,</span>
</span><span id="L-16"><a href="#L-16"><span class="linenos">16</span></a> <span class="s2">&quot;C&quot;</span><span class="p">,</span>
</span><span id="L-17"><a href="#L-17"><span class="linenos">17</span></a> <span class="s2">&quot;child_b&quot;</span><span class="p">,</span>
</span><span id="L-18"><a href="#L-18"><span class="linenos">18</span></a> <span class="s2">&quot;child_c&quot;</span><span class="p">,</span>
</span><span id="L-19"><a href="#L-19"><span class="linenos">19</span></a> <span class="s2">&quot;demopackage2&quot;</span><span class="p">,</span>
</span><span id="L-20"><a href="#L-20"><span class="linenos">20</span></a> <span class="s2">&quot;_child_e&quot;</span><span class="p">,</span>
</span><span id="L-21"><a href="#L-21"><span class="linenos">21</span></a> <span class="s2">&quot;child_excluded&quot;</span><span class="p">,</span>
</span><span id="L-22"><a href="#L-22"><span class="linenos">22</span></a> <span class="s2">&quot;subpackage&quot;</span><span class="p">,</span>
</span><span id="L-23"><a href="#L-23"><span class="linenos">23</span></a><span class="p">]</span>
</span><span id="L-2"><a href="#L-2"><span class="linenos"> 2</span></a>
</span><span id="L-3"><a href="#L-3"><span class="linenos"> 3</span></a><span class="kn">import</span> <span class="nn">demopackage2</span>
</span><span id="L-4"><a href="#L-4"><span class="linenos"> 4</span></a>
</span><span id="L-5"><a href="#L-5"><span class="linenos"> 5</span></a><span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">_child_e</span>
</span><span id="L-6"><a href="#L-6"><span class="linenos"> 6</span></a><span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">child_b</span>
</span><span id="L-7"><a href="#L-7"><span class="linenos"> 7</span></a><span class="kn">from</span> <span class="nn">._child_d</span> <span class="kn">import</span> <span class="n">Test</span>
</span><span id="L-8"><a href="#L-8"><span class="linenos"> 8</span></a><span class="kn">from</span> <span class="nn">.child_b</span> <span class="kn">import</span> <span class="n">B</span>
</span><span id="L-9"><a href="#L-9"><span class="linenos"> 9</span></a><span class="kn">from</span> <span class="nn">.child_c</span> <span class="kn">import</span> <span class="n">C</span>
</span><span id="L-10"><a href="#L-10"><span class="linenos">10</span></a>
</span><span id="L-11"><a href="#L-11"><span class="linenos">11</span></a><span class="k">if</span> <span class="n">demopackage2</span><span class="p">:</span>
</span><span id="L-12"><a href="#L-12"><span class="linenos">12</span></a> <span class="k">pass</span>
</span><span id="L-13"><a href="#L-13"><span class="linenos">13</span></a>
</span><span id="L-14"><a href="#L-14"><span class="linenos">14</span></a><span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
</span><span id="L-15"><a href="#L-15"><span class="linenos">15</span></a> <span class="s2">&quot;Test&quot;</span><span class="p">,</span>
</span><span id="L-16"><a href="#L-16"><span class="linenos">16</span></a> <span class="s2">&quot;B&quot;</span><span class="p">,</span>
</span><span id="L-17"><a href="#L-17"><span class="linenos">17</span></a> <span class="s2">&quot;C&quot;</span><span class="p">,</span>
</span><span id="L-18"><a href="#L-18"><span class="linenos">18</span></a> <span class="s2">&quot;child_b&quot;</span><span class="p">,</span>
</span><span id="L-19"><a href="#L-19"><span class="linenos">19</span></a> <span class="s2">&quot;child_c&quot;</span><span class="p">,</span>
</span><span id="L-20"><a href="#L-20"><span class="linenos">20</span></a> <span class="s2">&quot;demopackage2&quot;</span><span class="p">,</span>
</span><span id="L-21"><a href="#L-21"><span class="linenos">21</span></a> <span class="s2">&quot;_child_e&quot;</span><span class="p">,</span>
</span><span id="L-22"><a href="#L-22"><span class="linenos">22</span></a> <span class="s2">&quot;child_excluded&quot;</span><span class="p">,</span>
</span><span id="L-23"><a href="#L-23"><span class="linenos">23</span></a> <span class="s2">&quot;subpackage&quot;</span><span class="p">,</span>
</span><span id="L-24"><a href="#L-24"><span class="linenos">24</span></a><span class="p">]</span>
</span></pre></div>


Expand Down Expand Up @@ -168,14 +169,14 @@ <h1 class="modulename">

</div>
<a class="headerlink" href="#B"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="B-8"><a href="#B-8"><span class="linenos"> 8</span></a><span class="k">class</span> <span class="nc">B</span><span class="p">:</span>
</span><span id="B-9"><a href="#B-9"><span class="linenos"> 9</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;This class is defined in .child_b. It has a B.b method.&quot;&quot;&quot;</span>
</span><span id="B-10"><a href="#B-10"><span class="linenos">10</span></a>
</span><span id="B-11"><a href="#B-11"><span class="linenos">11</span></a> <span class="n">b_type</span><span class="p">:</span> <span class="n">typing</span><span class="o">.</span><span class="n">Type</span><span class="p">[</span><span class="n">B</span><span class="p">]</span>
</span><span id="B-12"><a href="#B-12"><span class="linenos">12</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;we have a self-referential attribute here&quot;&quot;&quot;</span>
</span><span id="B-13"><a href="#B-13"><span class="linenos">13</span></a>
</span><span id="B-14"><a href="#B-14"><span class="linenos">14</span></a> <span class="k">def</span> <span class="nf">b</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="B-15"><a href="#B-15"><span class="linenos">15</span></a> <span class="k">return</span> <span class="mi">1</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="B-9"><a href="#B-9"><span class="linenos"> 9</span></a><span class="k">class</span> <span class="nc">B</span><span class="p">:</span>
</span><span id="B-10"><a href="#B-10"><span class="linenos">10</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;This class is defined in .child_b. It has a B.b method.&quot;&quot;&quot;</span>
</span><span id="B-11"><a href="#B-11"><span class="linenos">11</span></a>
</span><span id="B-12"><a href="#B-12"><span class="linenos">12</span></a> <span class="n">b_type</span><span class="p">:</span> <span class="n">typing</span><span class="o">.</span><span class="n">Type</span><span class="p">[</span><span class="n">B</span><span class="p">]</span>
</span><span id="B-13"><a href="#B-13"><span class="linenos">13</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;we have a self-referential attribute here&quot;&quot;&quot;</span>
</span><span id="B-14"><a href="#B-14"><span class="linenos">14</span></a>
</span><span id="B-15"><a href="#B-15"><span class="linenos">15</span></a> <span class="k">def</span> <span class="nf">b</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="B-16"><a href="#B-16"><span class="linenos">16</span></a> <span class="k">return</span> <span class="mi">1</span>
</span></pre></div>


Expand Down Expand Up @@ -207,8 +208,8 @@ <h1 class="modulename">

</div>
<a class="headerlink" href="#B.b"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="B.b-14"><a href="#B.b-14"><span class="linenos">14</span></a> <span class="k">def</span> <span class="nf">b</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="B.b-15"><a href="#B.b-15"><span class="linenos">15</span></a> <span class="k">return</span> <span class="mi">1</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="B.b-15"><a href="#B.b-15"><span class="linenos">15</span></a> <span class="k">def</span> <span class="nf">b</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="B.b-16"><a href="#B.b-16"><span class="linenos">16</span></a> <span class="k">return</span> <span class="mi">1</span>
</span></pre></div>


Expand All @@ -227,11 +228,11 @@ <h1 class="modulename">

</div>
<a class="headerlink" href="#C"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="C-6"><a href="#C-6"><span class="linenos"> 6</span></a><span class="k">class</span> <span class="nc">C</span><span class="p">(</span><span class="n">child_b</span><span class="o">.</span><span class="n">B</span><span class="p">):</span>
</span><span id="C-7"><a href="#C-7"><span class="linenos"> 7</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;This class is defined in .child_c and inherits from .child_b.B&quot;&quot;&quot;</span>
</span><span id="C-8"><a href="#C-8"><span class="linenos"> 8</span></a>
</span><span id="C-9"><a href="#C-9"><span class="linenos"> 9</span></a> <span class="k">def</span> <span class="nf">c</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="C-10"><a href="#C-10"><span class="linenos">10</span></a> <span class="k">return</span> <span class="mi">2</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="C-7"><a href="#C-7"><span class="linenos"> 7</span></a><span class="k">class</span> <span class="nc">C</span><span class="p">(</span><span class="n">child_b</span><span class="o">.</span><span class="n">B</span><span class="p">):</span>
</span><span id="C-8"><a href="#C-8"><span class="linenos"> 8</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;This class is defined in .child_c and inherits from .child_b.B&quot;&quot;&quot;</span>
</span><span id="C-9"><a href="#C-9"><span class="linenos"> 9</span></a>
</span><span id="C-10"><a href="#C-10"><span class="linenos">10</span></a> <span class="k">def</span> <span class="nf">c</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="C-11"><a href="#C-11"><span class="linenos">11</span></a> <span class="k">return</span> <span class="mi">2</span>
</span></pre></div>


Expand All @@ -250,8 +251,8 @@ <h1 class="modulename">

</div>
<a class="headerlink" href="#C.c"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="C.c-9"><a href="#C.c-9"><span class="linenos"> 9</span></a> <span class="k">def</span> <span class="nf">c</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="C.c-10"><a href="#C.c-10"><span class="linenos">10</span></a> <span class="k">return</span> <span class="mi">2</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="C.c-10"><a href="#C.c-10"><span class="linenos">10</span></a> <span class="k">def</span> <span class="nf">c</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
</span><span id="C.c-11"><a href="#C.c-11"><span class="linenos">11</span></a> <span class="k">return</span> <span class="mi">2</span>
</span></pre></div>


Expand Down
1 change: 1 addition & 0 deletions test/testdata/demopackage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A test package with a sub-package at `.subpackage`."""

import demopackage2

from . import _child_e
Expand Down
1 change: 1 addition & 0 deletions test/testdata/demopackage/child_b.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""child_b docstr"""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions test/testdata/demopackage/child_c.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""child_c docstr"""

from . import child_b


Expand Down
1 change: 1 addition & 0 deletions test/testdata/demopackage2.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""I'm a different package, but I'm in demopackage.__all__!"""

x = 42
Loading

0 comments on commit 7b07452

Please sign in to comment.