(self)
| 249 | self.assertEqual(anno, {"arg": "x"}) |
| 250 | |
| 251 | def test_closure_undefined(self): |
| 252 | if False: |
| 253 | x = 0 |
| 254 | |
| 255 | def inner(arg: x): |
| 256 | pass |
| 257 | |
| 258 | anno = get_annotations(inner, format=Format.STRING) |
| 259 | self.assertEqual(anno, {"arg": "x"}) |
| 260 | |
| 261 | def test_function(self): |
| 262 | def f(x: int, y: doesntexist): |
nothing calls this directly
no test coverage detected