Well you can certainly write down the model as such in PyMC3 as we dont enforce the observe data type, besides some distribution that you need to use the observed to index variables. I would rather ask the question that: why would it make sense that the observed is a mixture of discrete and continuous? If so why not model the discrete observed and continuous ones separately?