()
| 115 | |
| 116 | |
| 117 | def register() -> None: |
| 118 | pairs = get_pairs() |
| 119 | for type_, cls in pairs: |
| 120 | # Cache previous converter if present |
| 121 | if type_ in munits.registry and not isinstance(munits.registry[type_], cls): |
| 122 | previous = munits.registry[type_] |
| 123 | _mpl_units[type_] = previous |
| 124 | # Replace with pandas converter |
| 125 | munits.registry[type_] = cls() |
| 126 | |
| 127 | |
| 128 | def deregister() -> None: |
no test coverage detected