I read this blog post about converting function/method arguments into what their type annotations mentioned they would be. You can read more from that link, but pretty much I got an idea that someone should be able to create fixtures from type annotations. Anyways, here’s a proof of concept just using the basic built-in types in Python.
Pretty cool stuff and it was really simple to do. I decided to try and create my own library to do this. It’s currently hosted on Github and called Pyfta. I need to dig more into the typing module to be able to support things like List[Union[Dict[str,int], int]]. We’ll see how far I get