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 — Crash on the numpy main branch: `AssertionError` in `check_multi_assignment_from_tuple` · Issue #21824 · python/mypy Closed Labels DescriptionCrash Report On the current numpy main branch (https://github.com/numpy/numpy/tree/87310db7f2a791b4a4e8503d4111359d85052cd4), mypy crashes when a result of This currently causes mypy_primer to crash when running in optuna, first observed in numpy/numpy#32231 (comment). Traceback Traceback (most recent call last): File "mypy/checker.py", line 765, in accept File "mypy/nodes.py", line 1909, in accept File "mypy/checker.py", line 3367, in visit_assignment_stmt self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None) File "mypy/checker.py", line 3419, in check_assignment self.check_assignment_to_multiple_lvalues( File "mypy/checker.py", line 4182, in check_assignment_to_multiple_lvalues self.check_multi_assignment(lvalues, rvalue, context, infer_lvalue_type) File "mypy/checker.py", line 4260, in check_multi_assignment self.check_multi_assignment_from_tuple( File "mypy/checker.py", line 4411, in check_multi_assignment_from_tuple assert isinstance(reinferred_rvalue_type, TupleType) AssertionError Repro Run # t.py import numpy as np def f(a: np.ndarray) -> None: _, ranks = np.unique(a, return_inverse=True) with the latest numpy@main installed (e.g. https://github.com/numpy/numpy/tree/87310db7f2a791b4a4e8503d4111359d85052cd4) Note that with This isn't an issue with the latest 2.5.2 NumPy release, where Your Environment
Reacted by Brian Schubert 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. |