Helper to make sure that we have covered all possible types. This is mostly useful for ``mypy``, docs: https://mypy.readthedocs.io/en/latest/literal_types.html#exhaustive-checks
(obj: NoReturn, msg: str)
| 738 | |
| 739 | |
| 740 | def assert_never(obj: NoReturn, msg: str) -> NoReturn: |
| 741 | """ |
| 742 | Helper to make sure that we have covered all possible types. |
| 743 | |
| 744 | This is mostly useful for ``mypy``, docs: |
| 745 | https://mypy.readthedocs.io/en/latest/literal_types.html#exhaustive-checks |
| 746 | """ |
| 747 | raise TypeError(msg) |
| 748 | |
| 749 | |
| 750 | def get_unique_discriminator_alias(all_aliases: Collection[str], discriminator_key: str) -> str: |
no outgoing calls
no test coverage detected