Skip to content

Hover for subscript when the argument is a Literal #1410

@MichaReiser

Description

@MichaReiser
arg = {
    "something": "else",
    "metadata": {"foo": "bar"},
    "configurable": {"baz": "qux"},
    "callbacks": [],
    "tags": ["tag1", "tag2"],
    "max_concurrency": 1,
    "recursion_limit": 100,
    "run_id": 1,
    "run_name": "test",
}

assert len(arg["callbacks"]) == 1, (
    "ensure_config should not modify the original config"
)

ty should show the type of arg["callback"] when hovering the subscript expression.

https://play.ty.dev/e30bc826-2028-4739-8fbb-f70f83d6531d

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    serverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions