facebookincubator / cinder

Cinder is Meta's internal performance-oriented production version of CPython.

Home Page:https://trycinder.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chkdict prints as "dict"

bennn opened this issue · comments

What version of Static Python are you using?

9965302
2021-06-24

What program did you run?

from __static__ import CheckedDict

def chk_ref(d: CheckedDict[int, int]) -> int:
  return d[0]

pydict: dict[int, int] = {1: 1}

chk_ref(pydict)

What happened?

TypeError: expected 'dict[int, int]', got 'dict'

What should have happened?

Error: expected Checked Dict got Python dict

fixed by 7cedc43