Files
ruff/crates/ty_python_semantic/resources/mdtest/literal/collections/dictionary.md

322 B

Dictionaries

Empty dictionary

reveal_type({})  # revealed: dict[@Todo(dict literal key type), @Todo(dict literal value type)]

Dict comprehensions

# revealed: dict[@Todo(dict comprehension key type), @Todo(dict comprehension value type)]
reveal_type({x: y for x, y in enumerate(range(42))})