Skip to content

optype.numpy.To{}ND false negatives in mypy #194

@jorenham

Description

@jorenham

@pavyamsiri discovered in scipy/scipy-stubs#195 (comment) a false negative in mypy with recursive sequences. This causes e.g. onp.ToFloatND = "huh" to be accepted by mypy.

I raised this in python/mypy#18184.

In the meantime we'll need a workaround, as this directly affects a very large portion of the annotations in scipy-stubs.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions