Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
戻り値の型がインスタンスのリストであることDocstringをPyCharmに伝えるにはどうすればよいですか?SomeClass
Docstring
SomeClass
を試してみました@rtype [SomeClass]が、 としてしか機能しませんlist。
@rtype [SomeClass]
list
def do_something(): """ @rtype: list of SomeClass """ pass
うまく機能し、戻り値をリストとして解釈し、要素SomeClassにアクセスするときにメソッドをオートコンプリートします。list