Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting nit
  • Loading branch information
AlexWaygood authored Jul 1, 2023
commit 53dbad05e88112c352188bb8a68e7c301dc6d62c
13 changes: 5 additions & 8 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5794,14 +5794,11 @@ class F:
get_type_hints(clazz)

def test_meta_no_type_check(self):

with self.assertWarnsRegex(
DeprecationWarning,
(
"'typing.no_type_check_decorator' is deprecated "
"and slated for removal in Python 3.15"
)
):
depr_msg = (
"'typing.no_type_check_decorator' is deprecated "
"and slated for removal in Python 3.15"
)
with self.assertWarnsRegex(DeprecationWarning, depr_msg):
@no_type_check_decorator
def magic_decorator(func):
return func
Expand Down