summaryrefslogtreecommitdiff
path: root/src/_pytest/_io
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-07-11 19:05:07 +0300
committerGitHub <noreply@github.com>2020-07-11 19:05:07 +0300
commit7b65b2337bbb639d9c9553a666e05d8c5f76db41 (patch)
tree5dc539b53b9671c1f00165f4f3ffbef508a6940e /src/_pytest/_io
parentd466cc25a78b442cd4ccaafae4adef9a7f1e4012 (diff)
parent7934ac280f2ddd956086ad5c078dfe901c94d67e (diff)
downloadpytest-7b65b2337bbb639d9c9553a666e05d8c5f76db41.tar.gz
Merge pull request #7472 from bluetech/cleanups-4
Some minor fixes & type annotations
Diffstat (limited to 'src/_pytest/_io')
-rw-r--r--src/_pytest/_io/saferepr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_pytest/_io/saferepr.py b/src/_pytest/_io/saferepr.py
index 6b9f353a2..823b8d719 100644
--- a/src/_pytest/_io/saferepr.py
+++ b/src/_pytest/_io/saferepr.py
@@ -98,12 +98,12 @@ class AlwaysDispatchingPrettyPrinter(pprint.PrettyPrinter):
level: int,
) -> None:
# Type ignored because _dispatch is private.
- p = self._dispatch.get(type(object).__repr__, None) # type: ignore[attr-defined] # noqa: F821
+ p = self._dispatch.get(type(object).__repr__, None) # type: ignore[attr-defined]
objid = id(object)
if objid in context or p is None:
# Type ignored because _format is private.
- super()._format( # type: ignore[misc] # noqa: F821
+ super()._format( # type: ignore[misc]
object, stream, indent, allowance, context, level,
)
return