We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3d22e commit 0efdd87Copy full SHA for 0efdd87
ptpython/layout.py
@@ -208,7 +208,14 @@ def get_tokens(cli):
208
209
append((Signature.Operator, '('))
210
211
- for i, p in enumerate(sig.params):
+ try:
212
+ enumerated_params = enumerate(sig.params)
213
+ except AttributeError:
214
+ # Workaround for #136: https://github.com/jonathanslenders/ptpython/issues/136
215
+ # AttributeError: 'Lambda' object has no attribute 'get_subscope_by_name'
216
+ return []
217
+
218
+ for i, p in enumerated_params:
219
# Workaround for #47: 'p' is None when we hit the '*' in the signature.
220
# and sig has no 'index' attribute.
221
# See: https://github.com/jonathanslenders/ptpython/issues/47
0 commit comments