Skip to content

Unknown type 'str' also suggests 's8' #106

Closed

Description

@Kinflou

name: str reports Unknown type 'str' - did you mean 's8'? with the help "str was removed; use string". The "did you mean" comes from suggest_similar_name (closest by edit distance) and contradicts the help.

Fix: in validate_type (and the constant-type error), skip suggest_similar_name when text_type_hint returns a hint. Small enough to ride along with the next core change rather than run its own pin cascade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3EventuallytoolingCLI, language server, editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions