Inside a sys.version_info guard, unexpected-keyword-arg returns error for version-specific keyword arg #9622
Labels
Control flow
Requires control flow understanding
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
To not see an error? :D
Either pylint should not try to validate keyword arguments it cannot validate (because it can't know what keyword arguments are going to run inside a sys.version_info check) or it should only check the branch it detects is suitable for the version of python it's implemented under.
Pylint version
OS / Environment
Gentoo Linux
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: