Aug 9, 2017 · 1 min read
Hi, thanks for the post, this is a really nice way of doing things and is very useful in my code. I’m totally new to decorators in Python (and relatively new to Python too), so this question might be a bit obvious, but can you create new subclasses outside of BaseMessage.py? I tried a similar implementation, but the new subclasses are not registered if I create them in separate files (e.g. EmailMessage.py) as I presume there is nothing to trigger them being initialised.