Add type hints to fail function
Change-Id: I77398dcd9fb3bb380c61aa8bd1fddd9680e4e8ca
This commit is contained in:
parent
770f3dab17
commit
2ddb9dbb11
@ -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…
x
Reference in New Issue
Block a user