Skip to content

Python docstring not generated for 3.12 generic syntax #675

Open

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

Activity

  1. shyun3 commented on Oct 19, 2026

    @shyun3
    Author

    If this syntax is used, doge cannot seem to generate docstrings on any functions/classes that come afterward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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