Implements a possible fix for #9.
The patch was primarily written by Deep Seek v4 Flash with pi agent. I reviewed all the code myself and I sign off on it as being a change that I think makes sense.
There was no indication of accepting the idea of using _ as a wildcard type yet, so I understand if we want to pursue a different solution. I'm doing this now to unblock me on my current work.