Leandro T. C. Melo
Leandro T. C. Melo
Consider the following snippet. ``` analyzerResult = projAnalyzer.Build(); … analyzerResult.AddToWorkspace(workspace, true); ``` Now, assume that the project to which the object `projAnalyzer` is associated with has structure such as that...
Languages for which bindings are mostly desired: - [ ] Python - [ ] Rust - [ ] Lua - [ ] OCaml - [ ] Go - [ ]...
I can retrieve line number and column offset from **individual** arguments or a `nodes.Argument` object, i.e.: ```python def visit_arguments(self, node : nodes.Arguments): for arg in node.args: print(arg.lineno) print(arg.col_offset) ``` The...
version: 2.4.2 Consider this project structure: ``` project |__ app.py |__ lib.py ``` And lib.py is as follows: ```python def setup(): pass ``` There appears to exist a bug in...
I'm not sure whether this is considered a bug, but even if considered an "enhancement", it'd be very good to address the situation I'm going to describe. 1. Within a...
I'm facing an endless recursion (apparently, from the trace, not the same as [this currently open issue](https://github.com/PyCQA/astroid/issues/865)). Consider this snippet: ``` v = bool() or 1 ``` When I `infer`...
This is about the [`Call` node](https://astroid.readthedocs.io/en/latest/api/astroid.nodes.html#astroid.nodes.Call). One of its fields is [`keywords`](https://astroid.readthedocs.io/en/latest/api/astroid.nodes.html#astroid.nodes.Call.keywords), and another is [`kwargs`](https://astroid.readthedocs.io/en/latest/api/astroid.nodes.html#astroid.nodes.Call.kwargs). The former, according to the doc (and intuitively as well), is expected to list...
I need to write a (module) transform for a a module that is already part of [astroid's brain](https://github.com/PyCQA/astroid/tree/master/astroid/brain) — think of my transform as an extension/enhancement of the transform existing...
**Note**: this content is roughly equivalent to that of an still unanswered [question I posted at SO](https://stackoverflow.com/questions/59829094/incorrect-inference-of-enum-values-type-with-astroid-the-engine-behind-py). ``` py from enum import Enum class Whatever(Enum): Foo = 1 Bar =...
When running `sbt stage`, where my systems protobuf version is 3.9.1, I get errors like: ``` [error] projects/codepropertygraph/proto-bindings/target/scala-2.12/src_managed/main/compiled_protobuf/io/shiftleft/proto/cpg/Cpg.java:4534:1: cannot find symbol [error] symbol: class UnusedPrivateParameter [error] location: class io.shiftleft.proto.cpg.Cpg.StringList ```...