basedpyright
basedpyright copied to clipboard
Limiting the length of the string literal makes wrong completion
Description
SEO: truncate
here's a repro:
from typing import Literal
type Foo = Literal["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
foo: Foo = '' # completion here
thanks for finding the code