diff options
author | clavedeluna <danalitovsky+git@gmail.com> | 2023-01-23 16:01:40 -0300 |
---|---|---|
committer | clavedeluna <danalitovsky+git@gmail.com> | 2023-01-23 16:01:40 -0300 |
commit | e1efa715d8a0228ad8ee8805b16742e5fabf440a (patch) | |
tree | ccd296310b3bd825a02f6ce333db567ab8786355 /pylint | |
parent | 31fe302c1cf9df38ad7aa9c2605fc4f792f2c2e7 (diff) | |
download | pylint-git-e1efa715d8a0228ad8ee8805b16742e5fabf440a.tar.gz |
fix no-kwoa for one with call
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/checkers/typecheck.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index febbbf1de..9e2bd4d80 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -687,7 +687,12 @@ def _no_context_variadic_keywords(node: nodes.Call, scope: nodes.Lambda) -> bool ): call = statement.value variadics = list(call.keywords or []) + call.kwargs - + elif isinstance(statement, nodes.With): + calls = statement.items + if calls: + # only handle one call for now... + call = statement.items[0][0] + variadics = list(call.keywords or []) + call.kwargs return _no_context_variadic(node, scope.args.kwarg, nodes.Keyword, variadics) |