Docstrings - Specifying type
已回答
I use a specific library often (https://github.com/Rapptz/discord.py), but PyCharm doesn't detect it's docstrings as they aren't one of the main forms, so it doesn't detect the types. I was wondering if there is a way for me to setup some kind of regex that will still detect the types?
请先登录再写评论。
Actually, it seems that it's detecting them, but some of the classes don't have full docstrings, or their type is somewhat disguised. There are still some like https://github.com/Rapptz/discord.py/blob/rewrite/discord/guild.py#L262 which could be detected
Hi Nihaal,
No, unfortunately, we don't provide any means to configure such customized docstring format yet. Moreover, even in well-known docstring formats such as reStructuredText or Google code style full-featured PEP 484 type hints are not supported at the moment.
You're welcome to create a feature request about it in our tracker, though.