I'm running rebar3 on a project with a few 3rd party dependencies, and one of them has an issue with a defined spec. When I moved to rebar3, a new error popped up showing that one of my method calls breaks a contract:
riakc_pb_socket:get(my_app, Bucket::any(), Key::any(), Options::any(),
Timeout::any())
breaks the contract
(pid(), bucket() | bucket_and_type(), key(), get_options(), timeout())
-> {'ok',riakc_obj()} | {'error',term()} | 'unchanged'
In reality, this code works perfectly fine with an atom or a pid. Besides updating the third party lib, is there any way to override that spec without forking the code, or just ignore that specific error?