Reputation: 25
I am new and using pycharm 5.0.4 for python coding. I found for some library, my Pycharm cannot automatically pop out the help hint for the potential method/class membership etc. Like below, the soup should have the get_text() method and other methods, but the IDE doesn't pop up the menu let me can choose.
I do see other people can use this in their pycharm, do I miss anything setting?
Thanks,
Please see below graph showing that I didn't get the pop up menu when I need the hint
Upvotes: 2
Views: 259
Reputation: 473863
You can make it work via the built into Pycharm "Type Hinting". Add an type: list[Tag]
inline comment to the line where the results of select
are assigned to a variable:
Note that you would need to import Tag
class in this case:
from bs4 import BeautifulSoup, Tag
Upvotes: 1