Skip to content

Fix @Todo type for starred expression in a class statement #2492

@AlexWaygood

Description

@AlexWaygood

For example:

from ty_extensions import reveal_mro
bases = (int, str)

class Foo(*bases): ...

reveal_mro(Foo)  # revealed: (<class 'Foo'>, @Todo(StarredExpression), <class 'object'>)

https://play.ty.dev/5fb011e6-cbd6-48b8-b4e7-95c98d6ca76b

I wouldn't say that this is very high priority, because it just doesn't come up that much, but we should resolve it at Some Point™️

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions