SlidingWindowSemaphore inherits TaskSemaphore but overrides all of its methods. TaskSemaphore has a _semaphore member variable which is not used by SlidingWindowSemaphore. __init__ is never called on the base class so the member is not created but could cause future maintenance headaches.
A new base interface class needs to be created or just use duck typing for the semaphore classes.
SlidingWindowSemaphore
inheritsTaskSemaphore
but overrides all of its methods.TaskSemaphore
has a_semaphore
member variable which is not used bySlidingWindowSemaphore
. __init__ is never called on the base class so the member is not created but could cause future maintenance headaches.A new base interface class needs to be created or just use duck typing for the semaphore classes.