GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mypy infers `numpy.float64` instead of `Any` for `numpy.ndarray.__iter__` in numpy 2.2.2 · Issue #18566 · python/mypy Closed as duplicate Closed as duplicate Copy link Labels DescriptionBug Report It looks like mypy doesn't correctly handle the overloading of See also: numpy/numpy#28245 To Reproduce import numpy as np import numpy.typing as npt a: npt.NDArray[np.float64] = np.ones([2, 2]) for _, ai in enumerate(a): reveal_type(ai) Expected Behavior
Actual Behavior
Your Environment Both pyright 1.1.392 and basedpyright 1.25.0 behave as expected.
Reacted by Joren Hammudoglu Activity
MetadataMetadataAssigneesLabelsProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |