heavenshell / vim-pydocstring

Generate Python docstring to your Python source code.
BSD 3-Clause "New" or "Revised" License
337 stars 53 forks source link

Use stringed in-parenthesis default value instead of default argument #65

Closed LucaZampieri closed 4 years ago

LucaZampieri commented 4 years ago

As we can see below it appear that only the lolipop is parsed.

   def plot_field_along_foil(verts, pred, gt, ylabel="Cp(lolipop)"):                                                                                                                                                      
      """plot_field_along_foil.

      Args:
          lolipop:

      Returns:
      """

perhaps related to #57

heavenshell commented 4 years ago

thx. yes. Can’t parse () right now. Currently, vim-docstring can't recognize tuple or string parenthesis.

I'm working new vim-pydocstring. https://github.com/heavenshell/vim-pydocstring/issues/63

heavenshell commented 4 years ago

Ver 2.0.0 was released and resolve this issue. Kapture 2020-02-22 at 22 53 07