This is so weird... Code completion only works outside a method... Anyone know how to fix this?
CodePudding user response:
This is the way it should work, and it has nothing to do with being inside or outside a method or function.
Instead, if you put a type hint like text: str
, then texts
will be a List[str]
:
and Pycharm's autocomplete will show its methods: