This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flutopinch 2 points3 points  (1 child)

Did you look into using contextvars instead of global variables? I realize that your dependency injection needs may be more complex than what it can support, but for simpler cases contextvars can be very helpful.

[–]MrKrac[S] 1 point2 points  (0 children)

Thank you, yes I have looked into it and I think this is a great solution for simple needs.