Skip to content

stubgen considers some assignments as type alias which aren't #3983

Open

Description

@dmoisset

Stubgen is a bit overoptimistic accepting top-level assignments as type alias. For example the code

type_map = {int: 42}
t = type_map[int]

results in

type_map: Any
t = type_map[int]

(This comes from #3169 (comment))

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions