-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Crash argument of type 'Const' is not iterable
#5935
Comments
Thanks @tjprescott, I edited down your report to a MRE. It looks like the same issue as pylint-dev/astroid#713, which another user reported was failing once more about a year ago. But rather than re-open an old issue, I think it makes sense to keep a new one open. (The re-report blamed the changes in pylint-dev/astroid#893.) |
2 tasks
Merged
jacobtylerwalls
added a commit
to jacobtylerwalls/astroid
that referenced
this issue
Mar 11, 2023
Harden support for using enums as metaclasses. Fixes the crash in pylint-dev/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in pylint-dev/pylint#7506, which requires correct bases.
jacobtylerwalls
added a commit
to jacobtylerwalls/astroid
that referenced
this issue
Mar 12, 2023
Harden support for using enums as metaclasses. Fixes the crash in pylint-dev/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in pylint-dev/pylint#7506, which requires correct bases.
jacobtylerwalls
added a commit
to pylint-dev/astroid
that referenced
this issue
Mar 26, 2023
…s` (#2049) Harden support for using enums as metaclasses. Fixes the crash in pylint-dev/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in pylint-dev/pylint#7506, which requires correct bases.
github-actions bot
pushed a commit
to pylint-dev/astroid
that referenced
this issue
Mar 26, 2023
…s` (#2049) Harden support for using enums as metaclasses. Fixes the crash in pylint-dev/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in pylint-dev/pylint#7506, which requires correct bases. (cherry picked from commit b5ebf99)
Pierre-Sassoulas
pushed a commit
to pylint-dev/astroid
that referenced
this issue
Mar 26, 2023
…s` (#2049) (#2067) Harden support for using enums as metaclasses. Fixes the crash in pylint-dev/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in pylint-dev/pylint#7506, which requires correct bases. (cherry picked from commit b5ebf99) Co-authored-by: Jacob Walls <[email protected]>
ChristopherManthei
pushed a commit
to ChristopherManthei/azure-sdk-for-python
that referenced
this issue
Jun 12, 2023
We are hitting pylint-dev/pylint#5935 "TypeError: argument of type 'Const' is not iterable" As we can't upgrade pylint the only way to fix this is to disable it entirely.
kashifkhan
pushed a commit
to Azure/azure-sdk-for-python
that referenced
this issue
Jul 6, 2023
…30723) * RemoteRendering: Fix for pylint error: Use CaseInsensitiveEnumMeta * Disable pylint We are hitting pylint-dev/pylint#5935 "TypeError: argument of type 'Const' is not iterable" As we can't upgrade pylint the only way to fix this is to disable it entirely. * Fix test resource creation * Update release date. * Update release date * Migrate pylint fix to python 3 Try enabling pylint again --------- Co-authored-by: Christopher Manthei <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
When parsing the following file:
pylint crashed with a
TypeError
and with the following stacktrace:Configuration
No response
Command used
`python -m pylint ..\apistubgentest`
Pylint output
Expected behavior
Not crash
Pylint version
OS / Environment
Windows 10/11. CMD shell.
Additional dependencies
azure-core
six
The text was updated successfully, but these errors were encountered: