Comments (1)
I can confirm that and found a possible explanation:
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.26.4'
>>> x = numpy.int16(42)
>>> type(x)
<class 'numpy.int16'>
>>> y = numpy.int16([1,42])
>>> type(y)
<class 'numpy.ndarray'>
numpy.int16()
used on an array will give you a numpy.ndarray
instance instead.
from pylint.
Related Issues (20)
- [unsupported-binary-operation] should become .pyi-conscious HOT 1
- False Positive on contextmanager-generator-missing-cleanup / W0135 When Using With Expression in the ContextManager HOT 8
- pylint 3.2.0 causes false-positive E1133 (not-an-iterable) error in packages with .pyi stubs HOT 6
- possibly-used-before-assignment doesn't understand never-returning-functions HOT 4
- possibly-used-before-assignment doesn't understand negation of conditionals HOT 8
- Regression(3.2): matplotlib.widgets.CheckButtons.get_status() is no longer recognized as a list HOT 1
- Crash running pylint from the command line HOT 2
- undefined-variable/possibly-used-before-assignment/used-before-assignment false positives for global
- Fix `possibly-used-before-assignment` issues in our own codebase
- used-before-assignment when variable possibly defined in try, and used in finally HOT 3
- False positive: unused-variable + undefined-variable when using := operator in stacked decorators
- [used-before-assignment] False negative for name defined inside loop that never runs
- `possibly-used-before-assignment` does not understand `assert_never`
- False positive: possibly-used-before-assignment doesn't understand and-ed contions HOT 7
- False positive for *used-before-assignment checkers HOT 2
- False positive: possibly-used-before-assignment and sys.exit() HOT 2
- pylint: disable=invalid-name pragma gets ignored when using ctypes Structure
- `possibly-used-before-assignment` does not handle `match` in nested `if` HOT 1
- False negatives for `duplicate-argument-name`
- False positive `redefined-outer-name` for variables bound to the exception in except clauses HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.