I think you should use `v.dtype in continuous_types` and `v.dtype in discrete_types` from https://github.com/pymc-devs/pymc/blob/pymc3/pymc/types.py