# RASA Docstring style

**URL:** <https://forum.rasa.com/t/rasa-docstring-style/15207>\
**Category:** Rasa Open Source\
**Created:** [September 4, 2019, 6:52am UTC](https://forum.rasa.com/t/rasa-docstring-style/15207 "2019-09-04T06:52:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alandas99](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@alandas99](https://forum.rasa.com/u/alandas99)\
**Post date:** [September 4, 2019, 6:52am UTC](https://forum.rasa.com/t/rasa-docstring-style/15207/1 "2019-09-04T06:52:54Z")

</div>

Hi everyone. I am currently writing documentation (specifically Docstrings), and came across some existing documentation that had me curious. I am not 100% sure if this is the case with other classes in the repository, and correct me if I am wrong, but in rasa/core/tracker\_store.py, it appears that the multi-line Docstrings are in Google Style Format. Here is an example:

 ![multi%20line%20docstring](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/0/0c854460ee739c4142b80b3656d9934701ace763.png)

Is this the preferred Docstring format for RASA? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [September 4, 2019, 2:29pm UTC](https://forum.rasa.com/t/rasa-docstring-style/15207/2 "2019-09-04T14:29:50Z")

</div>

Hey @alandas99, you are correct, Google Style Format is the preferred documentation style. Note that we omit specifying the types because they are already annotated on the function’s signature. Exceptions are still documented with type and description (e.g. “ValueError: when arg is invalid.”).
