Python Type hints as syntax error

My builds have been failing because CircleCI incorrectly marks functions which contain type hints in it’s signature as incorrect.

Eg:
*/gateway/controllers/hooks.py", line 6 def post(self, hook: dict) -> dict: ^ SyntaxError: invalid syntax

Are there know workarounds?

Thanks.

1 Like

Hey bernard I need a team to develop my project. Could you help me? I am from India. And for people around us I have to do something by developing networking software. I ve the idea but don’t know how to implement this…

Hi Kar

Add me up on Skype. My ID is bernard.ojengwa

Bernard, I added you on Skype. My name is Ravi Mishra.