Get current annotations. Returns ------- Dict of all current annotations See Also -------- annotate
()
| 73 | |
| 74 | |
| 75 | def get_annotations() -> dict[str, Any]: |
| 76 | """Get current annotations. |
| 77 | |
| 78 | Returns |
| 79 | ------- |
| 80 | Dict of all current annotations |
| 81 | |
| 82 | See Also |
| 83 | -------- |
| 84 | annotate |
| 85 | """ |
| 86 | return _annotations.get() or {} |
| 87 | |
| 88 | |
| 89 | @contextmanager |