(direction_key: str, lexicon: Optional[Dict[str, Any]] = None)
| 480 | |
| 481 | |
| 482 | def get_direction_entry(direction_key: str, lexicon: Optional[Dict[str, Any]] = None) -> Optional[Dict[str, Any]]: |
| 483 | normalized_key = normalize_direction_key(direction_key) |
| 484 | if not normalized_key: |
| 485 | return None |
| 486 | current_lexicon = lexicon or load_lexicon() |
| 487 | entry = current_lexicon.get(normalized_key) |
| 488 | return copy.deepcopy(entry) if entry else None |
| 489 | |
| 490 | |
| 491 | def format_direction_label( |
no test coverage detected