>>> a=1
>>> b=\'1\'
>>> print a+b
Traceback (most recent call last):
  File \"<stdin>\", line 1, in <module>
TypeError: unsupported operand type(s) for +: \'int\' and \'str\'

선언시에만 타입 명시가 필요없다 뿐이지 연산시에는 동적이지 않기 때문에...
루비나 펄은 어떤가요?