summaryrefslogtreecommitdiff
path: root/src/_pytest/nodes.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-10-02 13:07:37 -0700
committerAnthony Sottile <asottile@umich.edu>2020-10-03 08:01:22 -0700
commit7f0d2beb508068145a7e929fc760726e1a450915 (patch)
tree883eeb22d7713ab06ceef865434dc45fa8ddcf1a /src/_pytest/nodes.py
parent6ed07a1c2547667d1d2529ed8a3e457ef6d8f998 (diff)
downloadpytest-7f0d2beb508068145a7e929fc760726e1a450915.tar.gz
py36+: remove _pytest.compat.overload
Diffstat (limited to 'src/_pytest/nodes.py')
-rw-r--r--src/_pytest/nodes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py
index c8375e7cd..f3568b167 100644
--- a/src/_pytest/nodes.py
+++ b/src/_pytest/nodes.py
@@ -8,6 +8,7 @@ from typing import Iterable
from typing import Iterator
from typing import List
from typing import Optional
+from typing import overload
from typing import Set
from typing import Tuple
from typing import Type
@@ -22,7 +23,6 @@ from _pytest._code import getfslineno
from _pytest._code.code import ExceptionInfo
from _pytest._code.code import TerminalRepr
from _pytest.compat import cached_property
-from _pytest.compat import overload
from _pytest.config import Config
from _pytest.config import ConftestImportFailure
from _pytest.deprecated import FSCOLLECTOR_GETHOOKPROXY_ISINITPATH
@@ -316,11 +316,11 @@ class Node(metaclass=NodeMeta):
def get_closest_marker(self, name: str) -> Optional[Mark]:
...
- @overload # noqa: F811
- def get_closest_marker(self, name: str, default: Mark) -> Mark: # noqa: F811
+ @overload
+ def get_closest_marker(self, name: str, default: Mark) -> Mark:
...
- def get_closest_marker( # noqa: F811
+ def get_closest_marker(
self, name: str, default: Optional[Mark] = None
) -> Optional[Mark]:
"""Return the first marker matching the name, from closest (for