astroid icon indicating copy to clipboard operation
astroid copied to clipboard

A common base representation of python source code for pylint and other projects

Results 222 astroid issues
Sort by recently updated
recently updated
newest added

So this code works as expected: ```python node = astroid.extract_node(''' def foo(): return 42 ''') print(list(node.infer_call_result(caller=node))) ``` ```console $ python a.py [] ``` But this breaks: ```python node = astroid.extract_node('''...

### Steps to reproduce Here is an MWE that show the mismatch: ```python from enum import Enum from astroid import builder class MyEnum(Enum): REGULAR_MEMBER = 1 _PROTECTED_MEMBER = 2 __PRIVATE_MEMBER...

Bug 🪳

## Steps - [x] For new features or bug fixes, add a ChangeLog entry describing what your PR does. - [x] Write a good description on what the PR does....

Bug 🪳
Enhancement ✨
Needs review 🔍

## Steps - [x] For new features or bug fixes, add a ChangeLog entry describing what your PR does. - [x] Write a good description on what the PR does....

Enhancement ✨
Work in progress

- [ ] Re-enable `numpy` as a test dependency once they provide wheels for `3.11` > See #1517 - [ ] Remove the `if: ${{ always() }}` line from the...

python 3.11

Do not require first exception argument to be a string. The word "usually" does not imply an obligation. https://docs.python.org/3/library/exceptions.html#BaseException.args ## Steps - [ ] For new features or bug fixes,...

Bug 🪳
pylint-tested

## Steps - [x] For new features or bug fixes, add a ChangeLog entry describing what your PR does. - [x] Write a good description on what the PR does....

Enhancement ✨
inference

Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- --- - Bitbucket: https://bitbucket.org/logilab/astroid/issue/213

Maintenance

Those two files have been deprecated in 2.7.0 and need to be removed in 3.0.0.

Maintenance

### Steps to reproduce 1. Go into a Python 3.3+ environment without a compiler (eg `docker run -i -t python:3.6-alpine /bin/sh`) 2. Try to install astroid (or Pylint) `pip install...

Maintenance