andatt

Results 6 comments of andatt

Hi So the context to the situation is like this: ``` @dataclass class Something: breed: Type[CatBreed] ``` The type isn't a field of CatBreed, it's CatBreed the class. This is...

I was thinking the entire definition of enum in a dict, i.e: `{"SIAMESE": "siamese", "MAINE_COON": "maine_coon", "SACRED_BIRMAN": "birman"}`

Awesome! perfect - thank you, that's exactly what I was looking for. Will close this issue now :)

Ah I was too quick to close - I found that the code you gave worked for the example you gave above. But when I use the example I gave...

Hi @bibajz Thanks for you detailed replies, sorry it's taken me some time to reply. The proposed solutions work in these simple examples however when I apply them to some...

Sorry it's taken me some time on this, it was quite difficult isolating the issue from my more complex code. It's turns out there are two different issues that's prevent...