Skip to content

Commit

Permalink
Merge pull request pytest-dev#9129 from nicoddemus/fix-linting-main
Browse files Browse the repository at this point in the history
Fix formatting
  • Loading branch information
nicoddemus committed Sep 28, 2021
2 parents dd6d4b2 + 7f5e49e commit 7720154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_pytest/doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ def __init__(
optionflags: int = 0,
continue_on_failure: bool = True,
) -> None:
super().__init__(checker=checker, verbose=verbose, optionflags=optionflags
)
super().__init__(checker=checker, verbose=verbose, optionflags=optionflags)
self.continue_on_failure = continue_on_failure

def report_failure(
Expand Down Expand Up @@ -512,7 +511,7 @@ def _find_lineno(self, obj, source_lines):
if isinstance(obj, property):
obj = getattr(obj, "fget", obj)
# Type ignored because this is a private function.
return super()._find_lineno(
return super()._find_lineno( # type:ignore[misc]
obj,
source_lines,
)
Expand All @@ -525,7 +524,8 @@ def _find(
with _patch_unwrap_mock_aware():

# Type ignored because this is a private function.
super()._find(tests, obj, name, module, source_lines, globs, seen
super()._find( # type:ignore[misc]
tests, obj, name, module, source_lines, globs, seen
)

if self.path.name == "conftest.py":
Expand Down

0 comments on commit 7720154

Please sign in to comment.