You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no clue as I am a beginner. Hopefully, someone else understands what might have gone wrong.
QTextCursor::setPosition: Position '147' out of range
QTextCursor::setPosition: Position '147' out of range
Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/extensions/snippets.py", line 52, in wrapper
return f(self, *args, **kwargs)
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/extensions/snippets.py", line 241, in _process_text
self.insert_text(text, line, column)
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/extensions/snippets.py", line 383, in insert_text
text_node_tokens = list(text_node.tokens)
AttributeError: 'NoneType' object has no attribute 'tokens'
The text was updated successfully, but these errors were encountered:
Parameters
----------
aDict : A dictionary where all the values are lists.
Returns
-------
The key with the largest number of values associated with it.
'''
if aDict == {}:
return None
else:
return max(aDict, key = lambda x : len(aDict[x]))
The text was updated successfully, but these errors were encountered: