()
| 495 | raise TypeError("'name' is required when proxying a 'Local' object.") |
| 496 | |
| 497 | def _get_current_object() -> T: |
| 498 | try: |
| 499 | return get_name(local) # type: ignore[return-value] |
| 500 | except AttributeError: |
| 501 | raise RuntimeError(unbound_message) from None |
| 502 | |
| 503 | elif isinstance(local, LocalStack): |
| 504 |