| 
32 | 32 | from typing import is_typeddict, is_protocol  | 
33 | 33 | from typing import reveal_type  | 
34 | 34 | from typing import dataclass_transform  | 
35 |  | -from typing import no_type_check, no_type_check_decorator  | 
 | 35 | +from typing import no_type_check  | 
36 | 36 | from typing import Type  | 
37 | 37 | from typing import NamedTuple, NotRequired, Required, ReadOnly, TypedDict  | 
38 | 38 | from typing import IO, TextIO, BinaryIO  | 
@@ -6273,35 +6273,6 @@ class F:  | 
6273 | 6273 |         for clazz in [C, D, E, F]:  | 
6274 | 6274 |             self.assertEqual(get_type_hints(clazz), expected_result)  | 
6275 | 6275 | 
 
  | 
6276 |  | -    def test_meta_no_type_check(self):  | 
6277 |  | -        depr_msg = (  | 
6278 |  | -            "'typing.no_type_check_decorator' is deprecated "  | 
6279 |  | -            "and slated for removal in Python 3.15"  | 
6280 |  | -        )  | 
6281 |  | -        with self.assertWarnsRegex(DeprecationWarning, depr_msg):  | 
6282 |  | -            @no_type_check_decorator  | 
6283 |  | -            def magic_decorator(func):  | 
6284 |  | -                return func  | 
6285 |  | - | 
6286 |  | -        self.assertEqual(magic_decorator.__name__, 'magic_decorator')  | 
6287 |  | - | 
6288 |  | -        @magic_decorator  | 
6289 |  | -        def foo(a: 'whatevers') -> {}:  | 
6290 |  | -            pass  | 
6291 |  | - | 
6292 |  | -        @magic_decorator  | 
6293 |  | -        class C:  | 
6294 |  | -            def foo(a: 'whatevers') -> {}:  | 
6295 |  | -                pass  | 
6296 |  | - | 
6297 |  | -        self.assertEqual(foo.__name__, 'foo')  | 
6298 |  | -        th = get_type_hints(foo)  | 
6299 |  | -        self.assertEqual(th, {})  | 
6300 |  | -        cth = get_type_hints(C.foo)  | 
6301 |  | -        self.assertEqual(cth, {})  | 
6302 |  | -        ith = get_type_hints(C().foo)  | 
6303 |  | -        self.assertEqual(ith, {})  | 
6304 |  | - | 
6305 | 6276 | 
 
  | 
6306 | 6277 | class InternalsTests(BaseTestCase):  | 
6307 | 6278 |     def test_deprecation_for_no_type_params_passed_to__evaluate(self):  | 
 | 
0 commit comments