# Cannot understand warnings in Gradient

**URL:** <https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585>\
**Category:** Backend Questions/Help\
**Tags:** elixir, functional-programming, types\
**Created:** [7 February 2022 10:08 UTC](https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585 "2022-02-07T10:08:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [7 February 2022 20:30 UTC](https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585/4 "2022-02-07T20:30:14Z")

</div>

The first thing about the warning looks like just a warning in the gradient’s source, not yours.

The second thing is because `Access.get` is how elixir desugars things like what looks like array accesses, so typing `@spec getTipPercentage(List[String.t()]) :: non_neg_integer` is actually typing `@spec getTipPercentage(Access.get(List, String.t())) :: non_neg_integer`, which doesn’t make much sense as a type. ^.^;

But yeah, that’s not an issue for erlang code, it’s just some of Elixir’s magic making the type error a bit weird.

---

_[View the full topic](https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585)._
