(self)
| 2143 | self.assertEqual(str(Signature.from_callable(lru.cache_clear)), '()') |
| 2144 | |
| 2145 | def test_get_annotations(self): |
| 2146 | def orig(a: int) -> str: ... |
| 2147 | lru = self.module.lru_cache(1)(orig) |
| 2148 | |
| 2149 | self.assertEqual( |
| 2150 | get_annotations(orig), {"a": int, "return": str}, |
| 2151 | ) |
| 2152 | self.assertEqual( |
| 2153 | get_annotations(lru), {"a": int, "return": str}, |
| 2154 | ) |
| 2155 | |
| 2156 | def test_get_annotations_with_forwardref(self): |
| 2157 | def orig(a: int) -> nonexistent: ... |
nothing calls this directly
no test coverage detected