Changing the typehint to allow for various interfaces.