Comments (3)
It should be tunable if you set the class variable, as opposed to the (nonexistent) instance variable. (astroid.MANAGER is an instance, astroid.manager.AstroidManager is a class).
We can improve this situation though by creating instance properties that set the class properties like #2204. I'll make a PR.
from astroid.
Hi thanks, for the report.
Regarding v. 2.0, even then the AstroidManager
was already documented as a singleton/borg, so it was already acting like a wrapper for class constants. Do you have an example of code that worked on 2.0 by manipulating instance attributes that doesn't work on 3.0.0a9?
In 2.0, the instance of an AstroidManager used to get the limit is a module constant. Without seeing a reproducer in more detail, it's hard to see where your expectations are being violated. Any more concrete info you can provide will be appreciated.
from astroid.
Thanks for your answer.
Indeed, thanks to your comment, I better understand what was done in 2.0.0.
I have no example of this working with 2.0.0, I only referred to the documentation to show that it should be possible to tune the max_inferable_values
by setting a flag on astroid.MANAGER
.
So, in my case, I want to be able to change the value of max_inferable_values
used in NodeNG.infer
.
But, from my current understanding, max_inferable_values
was (and is) not tunable by the user, is that right?
from astroid.
Related Issues (20)
- Malicious package: MyPyPa HOT 2
- brain_gi uses wrong Gtk version for analysis
- [BUG] Cannot import Astroid with schemathesis 3.19.6 HOT 4
- Invariance "MANAGER.__dict__ == manager.AstroidManager.brain" no longer holds HOT 1
- Implement new nodes for PEP 695: Type Parameter Syntax
- `.arguments` property ignores keyword-only args, *args, and **kwargs HOT 5
- Exhausted inference from reused context in 3.0.0a6 HOT 1
- AttributeError: module 'astroid.nodes' has no attribute 'Try' HOT 1
- Update location attributes of new Typing nodes
- `ClassDef.instance_attrs` is being mutated during inference
- 2.15.7: sdist is still missing `tox.ini` HOT 3
- Regression in Astroid version 2.15.7 in handling subscriptable type parameters HOT 2
- `sphinx-autoapi` after astroid `v3.0.0` HOT 1
- A dataclass of type ``enum.Enum`` does not contain the enum ``__members__`` object HOT 4
- astroid depends on 'crypt', which is removed in Python 3.13 HOT 4
- Pyreverse does not show return type for property methods HOT 1
- Backstory behind license being LGPL? HOT 1
- Explore using `optimize` argument of `ast.parse()` in Python 3.13
- Test failures on Python 3.13 with astroid 3.0.2 HOT 4
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 astroid.