diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-01-25 00:38:22 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-01-25 00:38:22 +0200 |
commit | d403c33f5ae8a42d964d184641611e1d7fcf6339 (patch) | |
tree | fb5b50278d4b9bd8c2808368a19b8b09f15cdb06 | |
parent | 35ba13cf470ffca09cf97e65ce2c7fa75c0025e5 (diff) | |
download | astroid-git-d403c33f5ae8a42d964d184641611e1d7fcf6339.tar.gz |
Look in keyword-only annotations when determining the scope of annotations.
-rw-r--r-- | astroid/interpreter/scope.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/interpreter/scope.py b/astroid/interpreter/scope.py index 4cca5c5c..0d092ce2 100644 --- a/astroid/interpreter/scope.py +++ b/astroid/interpreter/scope.py @@ -50,6 +50,7 @@ def _scope_by_argument_parent(parent, node): look_for = itertools.chain(
(args.kwargannotation, ),
(args.varargannotation, ),
+ args.kwonly_annotations,
args.annotations)
if node in look_for:
return args.parent.parent.scope()
|