Merge "Add type hints to fail function"
This commit is contained in:
commit
9f0c190542
|
@ -13,13 +13,15 @@
|
|||
# under the License.
|
||||
from __future__ import absolute_import
|
||||
|
||||
import typing
|
||||
|
||||
import testtools
|
||||
|
||||
|
||||
FailureException = testtools.TestCase.failureException
|
||||
|
||||
|
||||
def fail(msg, *args, **kwargs):
|
||||
def fail(msg: str, *args, **kwargs) -> typing.NoReturn:
|
||||
"""Fail immediately current test case execution, with the given message.
|
||||
|
||||
Unconditionally raises a tobiko.FailureException as in below equivalent
|
||||
|
|
Loading…
Reference in New Issue