Replace dict() to dict:dict() for disable warning R17.0:
Warning: type dict/0 is deprecated and will be removed in OTP 18.0; use use dict:dict/0 or preferably dict:dict/2