# Help for type annotation (seq of tuples)

**URL:** <https://forums.fsharp.org/t/help-for-type-annotation-seq-of-tuples/419>\
**Category:** General\
**Tags:** beginners\
**Created:** [August 21, 2018, 12:27pm UTC](https://forums.fsharp.org/t/help-for-type-annotation-seq-of-tuples/419 "2018-08-21T12:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbauduin](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/rbauduin/32/314_2.png) [@rbauduin](https://forums.fsharp.org/u/rbauduin)\
**Post date:** [August 21, 2018, 12:27pm UTC](https://forums.fsharp.org/t/help-for-type-annotation-seq-of-tuples/419/1 "2018-08-21T12:27:02Z")

</div>

I have a function working fine, defined without type annotation:

```auto
let expensesGroupBarGraph s =

```

I wanted to add a type annotation for the argument s, which is a sequence of tuples with the first tuple member being a string, and the second tuple member being of type ExpensesSummary. (Don’t hesitate to point me to the documentation if I missed the place it is explained).

I tried this without success

```auto
let expensesGroupBarGraph (s:Seq<(string,ExpensesSummary)>) =

```

I’m working in Jupyter and get this error:

```auto
Unexpected symbol '>' in type arguments
Expected type argument or static argument
Unexpected start of structured construct in type arguments. Expected ',' or other token.
Expected type argument or static argument
Unexpected symbol '->' in binding. Expected '=' or other token.
Incomplete structured construct at or before this point in interaction. Expected incomplete structured construct at or before this point, ';', ';;' or other token.
parse error

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![evgeny](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@evgeny](https://forums.fsharp.org/u/evgeny)\
**Post date:** [August 21, 2018, 12:31pm UTC](https://forums.fsharp.org/t/help-for-type-annotation-seq-of-tuples/419/2 "2018-08-21T12:31:25Z")

</div>

> let expensesGroupBarGraph (s: (string \* ExpensesSummary) seq) =

---

<div class="post-metadata">

**Author:** ![ThisIsErik](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/thisiserik/32/429_2.png) [@ThisIsErik](https://forums.fsharp.org/u/ThisIsErik)\
**Post date:** [December 17, 2018, 7:34pm UTC](https://forums.fsharp.org/t/help-for-type-annotation-seq-of-tuples/419/3 "2018-12-17T19:34:16Z")

</div>

It could also be written as:

```
let expensesGroupBarGraph (s: seq<string * ExpensesSummary>) =
```
