Skip to content

Python docstring not generated for 3.12 generic syntax #675

@shyun3

Description

@shyun3

Describe the bug

Plugin does not seem to support the new syntax for generic functions introduced in Python 3.12. See examples.

Settings

No custom settings.

To Reproduce

Steps to reproduce the behavior:

  1. Open a new Python buffer and insert the following snippet:
    def f[T](x: T) -> None:
        pass
  2. Move cursor to f and use the Ex command :DogeGenerate

Nothing happens.

Expected behavior

Docstring to be generated.

Output of ./bin/vim-doge-helper --version

vim-doge-helper 4.7.0

Output of vim --version

NVIM v0.11.6
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions