Retrieves the metadata for a deprecated option, if `key` is deprecated. Returns ------- DeprecatedOption (namedtuple) if key is deprecated, None otherwise
(key: str)
| 674 | |
| 675 | |
| 676 | def _get_deprecated_option(key: str): |
| 677 | """ |
| 678 | Retrieves the metadata for a deprecated option, if `key` is deprecated. |
| 679 | |
| 680 | Returns |
| 681 | ------- |
| 682 | DeprecatedOption (namedtuple) if key is deprecated, None otherwise |
| 683 | """ |
| 684 | try: |
| 685 | d = _deprecated_options[key] |
| 686 | except KeyError: |
| 687 | return None |
| 688 | else: |
| 689 | return d |
| 690 | |
| 691 | |
| 692 | def _get_registered_option(key: str): |
no outgoing calls
no test coverage detected