reference: add doc for `Package`

We document the other py collectors, we should document `Package` as
well.
This commit is contained in:
Ran Benita 2023-06-14 09:22:34 +03:00
parent 2d824329eb
commit 264e7ac327
2 changed files with 9 additions and 0 deletions

View File

@ -926,6 +926,12 @@ Parser
.. autoclass:: pytest.Parser() .. autoclass:: pytest.Parser()
:members: :members:
Package
~~~~~~~
.. autoclass:: pytest.Package()
:members:
OptionGroup OptionGroup
~~~~~~~~~~~ ~~~~~~~~~~~

View File

@ -659,6 +659,9 @@ class Module(nodes.File, PyCollector):
class Package(Module): class Package(Module):
"""Collector for files and directories in a Python packages -- directories
with an `__init__.py` file."""
def __init__( def __init__(
self, self,
fspath: Optional[LEGACY_PATH], fspath: Optional[LEGACY_PATH],