Skip to content

Commit 9e720f1

Browse files
committed
fix bug in method declarations
1 parent f4ae64a commit 9e720f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common_with_cwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def set_declaration_defaults(declaration):
5353

5454
def filter_unique_options(options, allow_kwarg, type_to_signature, remove_self):
5555
def exclude_arg(arg):
56-
return arg.get('ignore_check')
56+
return arg.get('ignore_check') or arg['type'] == 'CONSTANT'
5757

5858
def exclude_arg_with_self_check(arg):
5959
return exclude_arg(arg) or (remove_self and arg['name'] == 'self')

0 commit comments

Comments
 (0)