BackgroundTasks inheritance #2633
Unanswered
Vert53
asked this question in
Potential Issue
Replies: 1 comment
-
It is probably not a necessary inheritance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm wondering why does BackgroundTasks inheriting from BackgroundTask ?
BackgroundTasks doesn't use any of the attributes or methods defined in BackgroundTask. It defines its own init method and call method.
https://github.com/encode/starlette/blame/6f863b0d3b8e8f18d5df9e8cd2514f7085b874e1/starlette/background.py#L33
Beta Was this translation helpful? Give feedback.
All reactions