Skip to content

Commit 1b4caba

Browse files
committed
Add type hinting
1 parent 51124a8 commit 1b4caba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_reportportal/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from functools import wraps
2121
from os import curdir
2222
from time import time, sleep
23-
from typing import List, Any, Optional, Set, Dict, Tuple, Union
23+
from typing import List, Any, Optional, Set, Dict, Tuple, Union, Callable
2424

2525
from _pytest.doctest import DoctestItem
2626
from aenum import auto, Enum, unique
@@ -389,7 +389,7 @@ def _get_item_description(self, test_item):
389389
if isinstance(test_item, DoctestItem):
390390
return test_item.reportinfo()[2]
391391

392-
def _lock(self, leaf, func):
392+
def _lock(self, leaf: Dict[str, Any], func: Callable[[Dict[str, Any]], Any]) -> Any:
393393
"""
394394
Lock test tree leaf and execute a function, bypass the leaf to it.
395395

0 commit comments

Comments
 (0)