(self)
| 260 | |
| 261 | @property |
| 262 | def __forward_code__(self): |
| 263 | if self.__code__ is not None: |
| 264 | return self.__code__ |
| 265 | arg = self.__forward_arg__ |
| 266 | try: |
| 267 | self.__code__ = compile(_rewrite_star_unpack(arg), "<string>", "eval") |
| 268 | except SyntaxError: |
| 269 | raise SyntaxError(f"Forward reference must be an expression -- got {arg!r}") |
| 270 | return self.__code__ |
| 271 | |
| 272 | def __eq__(self, other): |
| 273 | if not isinstance(other, ForwardRef): |
nothing calls this directly
no test coverage detected