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 — BUG: static typing of numpy.clip seems to be missing some kwargs · Issue #24391 · numpy/numpy Closed DescriptionDescribe the issue:Using the 'basic type checking' option in VS code I see an error flagged on a numpy call which I believe to be incorrect. I originally posted a bug for pyright and they told me to ask here, as VS code's typing info for numpy comes from the project itself. Reproduce the code example:import numpy numpy.clip(numpy.zeros(1), 0, 255, casting='safe') Error message:No overloads for "clip" match the provided arguments Argument types: (NDArray[float64], Literal[0], Literal[255], Literal['safe']) Runtime information:Context for the issue:This issue is cosmetic in the sense that the code will run correctly even if the error shows in the editor. However if you agree that it looks like the root cause is in the numpy project, I am happy to do a bit more investigation to see if it affects other ufuncs and other keyword args, and hopefully generate a PR to fix everything. Activity
MetadataMetadataAssigneesTypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |