(self)
| 240 | |
| 241 | class TestStringFormat(unittest.TestCase): |
| 242 | def test_closure(self): |
| 243 | x = 0 |
| 244 | |
| 245 | def inner(arg: x): |
| 246 | pass |
| 247 | |
| 248 | anno = get_annotations(inner, format=Format.STRING) |
| 249 | self.assertEqual(anno, {"arg": "x"}) |
| 250 | |
| 251 | def test_closure_undefined(self): |
| 252 | if False: |
nothing calls this directly
no test coverage detected