Skip to content

Commit 5c6c937

Browse files
mschoettlehramezani
authored andcommitted
Fix type in assertRaisesMessage signature
1 parent f27c6aa commit 5c6c937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_django/asserts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Dynamically load all Django assertion cases and expose them for importing.
33
"""
44
from functools import wraps
5-
from typing import Any, Callable, Optional, Sequence, Set, Union
5+
from typing import Any, Callable, Optional, Sequence, Set, Type, Union
66

77
from django.test import (
88
LiveServerTestCase, SimpleTestCase, TestCase, TransactionTestCase,
@@ -113,7 +113,7 @@ def assertTemplateNotUsed(
113113
...
114114

115115
def assertRaisesMessage(
116-
expected_exception: BaseException,
116+
expected_exception: Type[Exception],
117117
expected_message: str,
118118
*args,
119119
**kwargs

0 commit comments

Comments
 (0)