title: SyntaxError: invalid syntax with variable annotation
body: <p>I have installed visual studio code and <code>code runner</code> extension. I then have this piece of code:</p>
  
  <pre><code>text: str = "slkdfjsd"
  </code></pre>
  
  <p>I click <code>CTRL-ALT-N</code> and I get:</p>
  
  <pre><code>    text: str = "slkdfjsd"
          ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I like using types, and this program worked, it looks like its complaining about the types how can I have it understand that types are ok?</p>
  
  <p>more details:</p>
  
  <pre><code>$ /usr/bin/env python3 --version
  Python 3.6.6 :: Anaconda, Inc.
  </code></pre>
  
  <p>and when it's running it with:</p>
  
  <pre><code>[Running] /usr/bin/env python3 "/home/myuser/dev/projects/python-snippets/text-summarization"
    File "/home/myuser/dev/projects/python-snippets/text-summarization", line 44
      text: str = "slkdfjsd"
          ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Code runner plugin docs says: </p>
  
  <blockquote>
    <p><code>$pythonPath</code>: The path of Python interpreter (set by <code>Python: Select Interpreter command</code>)</p>
  </blockquote>
  
  <p>but when I run print the path as comments suggested, I get a different version:</p>
  
  <pre><code>sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)
  </code></pre>
  
  <p>which is different as you can see above from the <code>&gt;python: select interpreter</code> which I have chosen.</p>
  
  <p>Note also that when I run this code in visual studio code with run in terminal instead of <code>CTRL-ALT-N</code> then the python version chosen is 3.6 and it runs fine without any syntax error, so it I think it's something with the code runner not seeing the same python version that I see when selecting <code>&gt;python: select interpreter</code></p>
  
  <p>Update: I see indeed that code-runner is using the wrong python interpreter as stated above, so I opened my user settings and tried to update <code>python</code> to point to the correct interpreter however it did not change anything it's still using the same wrong interpreter here is what I tried:</p>
  
  <pre><code>{
      "git.autofetch": true,
      "terminal.integrated.rendererType": "dom",
      "code-runner.executorMap": {
          "javascript": "node",
          "java": "cd $dir &amp;&amp; javac $fileName &amp;&amp; java $fileNameWithoutExt",
          "c": "cd $dir &amp;&amp; gcc $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt",
          "cpp": "cd $dir &amp;&amp; g++ $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt",
          "objective-c": "cd $dir &amp;&amp; gcc -framework Cocoa $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt",
          "php": "php",
          "python": "/home/user/home/user/dev/anaconda3/envs/pymachine/bin/python",
          "perl": "perl",
          "perl6": "perl6",
          "ruby": "ruby",
          "go": "go run",
          "lua": "lua",
          "groovy": "groovy",
          "powershell": "powershell -ExecutionPolicy ByPass -File",
          "bat": "cmd /c",
          "shellscript": "bash",
          "fsharp": "fsi",
          "csharp": "scriptcs",
          "vbscript": "cscript //Nologo",
          "typescript": "ts-node",
          "coffeescript": "coffee",
          "scala": "scala",
          "swift": "swift",
          "julia": "julia",
          "crystal": "crystal",
          "ocaml": "ocaml",
          "r": "Rscript",
          "applescript": "osascript",
          "clojure": "lein exec",
          "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
          "rust": "cd $dir &amp;&amp; rustc $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "racket": "racket",
          "ahk": "autohotkey",
          "autoit": "autoit3",
          "dart": "dart",
          "pascal": "cd $dir &amp;&amp; fpc $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "d": "cd $dir &amp;&amp; dmd $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "haskell": "runhaskell",
          "nim": "nim compile --verbosity:0 --hints:off --run"
        }
  }
  </code></pre>
  
  <p>However also after changing that (maybe i'm doig something wrong i'm vscode newbie) I still see that the code-runner is running it with:</p>
  
  <pre><code>[Running] /usr/bin/env python3 "/home/myuser/dev/projects/python-snippets/text-summarization"
  </code></pre>