From 58e77f58bd5bfea593daeaacc3f934b3c1dfbeb6 Mon Sep 17 00:00:00 2001 From: Vlad Shcherbina Date: Sun, 15 Jul 2018 16:58:39 +0300 Subject: [PATCH] Replace broken type annotations with type comments Fixes #3635. --- changelog/3635.trivial.rst | 1 + src/_pytest/mark/structures.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog/3635.trivial.rst diff --git a/changelog/3635.trivial.rst b/changelog/3635.trivial.rst new file mode 100644 index 000000000..5354d0df9 --- /dev/null +++ b/changelog/3635.trivial.rst @@ -0,0 +1 @@ +Replace broken type annotations with type comments. diff --git a/src/_pytest/mark/structures.py b/src/_pytest/mark/structures.py index e3a07f021..9bd89c3c3 100644 --- a/src/_pytest/mark/structures.py +++ b/src/_pytest/mark/structures.py @@ -136,9 +136,9 @@ class Mark(object): #: name of the mark name = attr.ib(type=str) #: positional arguments of the mark decorator - args = attr.ib(type="List[object]") + args = attr.ib() # type: List[object] #: keyword arguments of the mark decorator - kwargs = attr.ib(type="Dict[str, object]") + kwargs = attr.ib() # type: Dict[str, object] def combined_with(self, other): """