On a side note, the do_ functions are virtual methods, it’s the ones to be implemented when subclassing. Usually you shall never call them directly, except when you want to chain-up the subclass implementation to the upper class, in which case it looks like:
# `do_` are static methods in Python, use `Class.virtual_method(instance, args...)`
MyContentProviderUpperClass.do_detach_clipboard(content_provider, clipboard)
That’s why you see this takes exactly 2 arguments warning.
But anyway, that’s not needed for your usecase.