We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import astroid.helpers def test_astroid_augmented_assigment_list_and_tuple() -> None: mod = astroid.parse(''' l = [] l += (1,2) ''') assignment, augmented_assigment = mod.getattr('l') assert astroid.helpers.safe_infer(augmented_assigment).as_string() == '[1,2]' # We get AssertionError: assert Uninferable == '[1,2]'
We get AssertionError: assert Uninferable == '[1,2]'
The provided test should pass. If one can point me to the right direction, I can try to provide a PR for the fix.
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
2.12.12
The text was updated successfully, but these errors were encountered:
This is probably part of the AugAssign path. Checking out infer_augassign might help, but I worry that this might be a difficult to fix bug.
AugAssign
infer_augassign
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
Current behavior
We get AssertionError: assert Uninferable == '[1,2]'
Expected behavior
The provided test should pass.
If one can point me to the right direction, I can try to provide a PR for the fix.
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.12.12
The text was updated successfully, but these errors were encountered: