Skip to content

Commit

Permalink
Very minor doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jan 8, 2020
1 parent 2794e69 commit 86a581f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_pytest/doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def __init__(self, name, parent, runner=None, dtest=None):
def from_parent( # type: ignore
cls, parent: "Union[DoctestTextfile, DoctestModule]", *, name, runner, dtest
):
# incompatible signature due to to imposed limits on sublcass
# incompatible signature due to to imposed limits on subclass
"""
the public named constructor
"""
Expand Down
6 changes: 4 additions & 2 deletions src/_pytest/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ def from_parent(cls, parent: "Node", **kw):
This indirection got introduced in order to enable removing
the fragile logic from the node constructors.
Subclasses can use ``super().from_parent(...)`` when overriding the construction
Subclasses can use ``super().from_parent(...)`` when overriding the construction.
:param parent: the parent node of this test Node
:param parent: the parent node of this test node
.. versionadded:: 5.4
"""
if "config" in kw:
raise TypeError("config is not a valid argument for from_parent")
Expand Down

0 comments on commit 86a581f

Please sign in to comment.