Skip to content

Lambdas are accepted by the type checker but not actually checked #2

@JukkaL

Description

@JukkaL

You can use lambdas in code, but the type checker basically ignores them and always gives them the 'any' type.

Code like this is accepted, which is obviously wrong:

int x = lambda y: 'x'

Metadata

Metadata

Assignees

Labels

bugmypy got something wrong

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions