I'm using Pycharm and Python 3.4 on different servers to execute scripts I've made. I'm using type hinting in my code. Now someone from my work have executed my code on a Python 3.5 installation and is getting a syntax error on my type hinting. I do not "knowingly" use any modules for type hinting in Python 3.4 IE I am not using the typing module.
def run(iargs) -> int:
^ syntax error
Could it be that Python 3.4 not even reading these tags where 3.5 does. ?
EDIT
I've done the following test
Python 3.4.3 (default, Oct 28 2016, 10:12:53)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def Add(r,l) -> int:
... return int(r + l)
...
>>> Add(3,5)
8
>>>
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def Add(r,l) -> int:
... return int(r + l)
...
>>> Add(3,5)
8
So there are no problems regarding version of the python 3.4 or 3.5 however when I execute my script I get the following
File "test.py", line 235
def run(iargs) -> int:
^
SyntaxError: invalid syntax
Regards
PEP 3107) not type hints (PEP 484).