Files
Morgan Bartholomewandintellij-monorepo-bot 4d95ecde4e PY-57621 type inference: infer tuples with literal types
(cherry picked from commit d3f6711e4d187fac8b426eb1d5ed75def4932b3b)

GitOrigin-RevId: cc327f405e9a133425bcfbb091e22f1e267b6383
2026-03-25 07:22:50 +00:00

6 lines
254 B
Python

argument_pattern = re.compile(r'(%s)\s*(\(\s*(%s)\s*\)\s*)?$'
% ((states.Inliner.simplename,) * 2))
t, num = ('foo',), 2
res = '%d %d' % (<warning descr="Unexpected type (Literal['foo'], Literal['foo'])">t * num</warning>)