The use of multiple inheritance wasn't working because govuk_frontend_jinja.Environment.__init__'s call signature didn't accept positional arguments; fixing this bug allowed the proper method resolution order to be specified, and now the init function that adds indent_njk gets called as expected.
The lesson here is probably "don't use multiple inheritance", but oh well 🤷♂
This PR fixes issue #40.
The use of multiple inheritance wasn't working because
govuk_frontend_jinja.Environment.__init__
's call signature didn't accept positional arguments; fixing this bug allowed the proper method resolution order to be specified, and now the init function that addsindent_njk
gets called as expected.The lesson here is probably "don't use multiple inheritance", but oh well 🤷♂