File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def deprecated_call(
84
84
85
85
@overload
86
86
def warns (
87
- expected_warning : Optional [ Union [Type [Warning ], Tuple [Type [Warning ], ...] ]] = ...,
87
+ expected_warning : Union [Type [Warning ], Tuple [Type [Warning ], ...]] = ...,
88
88
* ,
89
89
match : Optional [Union [str , Pattern [str ]]] = ...,
90
90
) -> "WarningsChecker" :
@@ -93,7 +93,7 @@ def warns(
93
93
94
94
@overload
95
95
def warns (
96
- expected_warning : Optional [ Union [Type [Warning ], Tuple [Type [Warning ], ...] ]],
96
+ expected_warning : Union [Type [Warning ], Tuple [Type [Warning ], ...]],
97
97
func : Callable [..., T ],
98
98
* args : Any ,
99
99
** kwargs : Any ,
@@ -102,9 +102,7 @@ def warns(
102
102
103
103
104
104
def warns (
105
- expected_warning : Optional [
106
- Union [Type [Warning ], Tuple [Type [Warning ], ...]]
107
- ] = Warning ,
105
+ expected_warning : Union [Type [Warning ], Tuple [Type [Warning ], ...]] = Warning ,
108
106
* args : Any ,
109
107
match : Optional [Union [str , Pattern [str ]]] = None ,
110
108
** kwargs : Any ,
You can’t perform that action at this time.
0 commit comments