[issue32191] TypeError does not work when function with type hint

2017-11-30 Thread Kyeongpil
Kyeongpil <rudvlf0...@korea.ac.kr> added the comment: Oh, I confused the syntax of type hint. Sorry -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bu

[issue32191] TypeError does not work when function with type hint

2017-11-30 Thread Kyeongpil
New submission from Kyeongpil <rudvlf0...@korea.ac.kr>: TypeError does not work when I input float variable into function that I give type hint. example code is like this: def a(b: int) -> int: return b+1 a(1.1) and the result is 1.1. However, I think it should throw TypeError