2

Looking at the answer given here

example:

def md5_checksum_table(dir_name: str, suffix: str) -> {bytes: [str]}:

This is the first time I see -> used, and I do not understand what this does. I have tried to search in documenation, but failed to find the relevant description of this.

Can anyone explain to me what this is/does ?

1
  • I appreciate that this was a duplicate indeed, however I tried to search with multiple search strings on SO, and it did not reveal the post from 3.5 years ago. Thanks. Commented Oct 6, 2016 at 11:21

1 Answer 1

6

It's a type hint, used to denote what type the method returns.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.