Open skewty opened 2 years ago
@skewty Thanks for pointing this out. I will happily accept any PR :). Please let me know if you would like to create one. If not, I will update the documentation by myself.
To my defence, my assumption was it is clear, but I think you are right - I should explicitly mention this in the documentation.
It is likely not obvious to many developers that kink's inject decorator function can be used as a regular function (not as a decorator) to make 3rd party classes injectable without needing to modify the 3rd party code at all.
I wrote this bit of code to demonstrate how to do it:
Perhaps something like this could be included in the docs to help others recognise this possibility as well.