Replace a type-alias with a concrete ``NBitBase`` subclass.
(ctx: AnalyzeTypeContext)
| 117 | |
| 118 | |
| 119 | def _hook(ctx: AnalyzeTypeContext) -> Type: |
| 120 | """Replace a type-alias with a concrete ``NBitBase`` subclass.""" |
| 121 | typ, _, api = ctx |
| 122 | name = typ.name.split(".")[-1] |
| 123 | name_new = _PRECISION_DICT[f"numpy._typing._nbit.{name}"] |
| 124 | return api.named_type(name_new) |
| 125 | |
| 126 | |
| 127 | if TYPE_CHECKING or MYPY_EX is None: |