Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with type annotations in python #14

Closed
vigoux opened this issue Jul 18, 2019 · 3 comments
Closed

Bug with type annotations in python #14

vigoux opened this issue Jul 18, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@vigoux
Copy link
Contributor

vigoux commented Jul 18, 2019

Describe the bug
I'm writing documentation for python using custom type hints modules of the form my_module.foo.bar and doge has problem handling this.

To Reproduce
Steps to reproduce the behavior:
With this example:

def my_function(arg1: my_module.types, arg2: int = 3):
    pass

Expected behavior

def my_function(arg1: my_module.types, arg2: int = 3):
    """
    TODO
    
    :param arg1 my_module.types: TODO
    :param arg2 int: TODO
    """
    pass

Actual Behavior

def my_function(arg1: my_module.types, arg2: int = 3):
    """
    TODO
    
    :param arg1 my_module: TODO
    :param types [TODO:type]: TODO
    :param arg2 int: TODO
    """
    pass

Out of vim --version

NVIM v0.4.0-dev
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20190717-54093-1saai08/build/config -I/tmp/neovim-20190717-54093-1saai08/src -I/usr/local/include -I/tmp/neovim-20190717-54093-1saai08/deps-build/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20190717-54093-1saai08/build/src/nvim/auto -I/tmp/neovim-20190717-54093-1saai08/build/include
Compilé par ****

Features: +acl +iconv +tui
See ":help feature-compile"

         fichier vimrc système : "$VIM/sysinit.vim"
               $VIM par défaut : "
/usr/local/Cellar/neovim/HEAD-b415079/share/nvim"
@vigoux vigoux added the bug Something isn't working label Jul 18, 2019
@kkoomen
Copy link
Owner

kkoomen commented Jul 18, 2019

Hi!

Thanks for submitting your issue. I've just fixed this in v1.4.5. Feel free to submit any new issues if you experience more unwanted behavior.

@kkoomen kkoomen closed this as completed Jul 18, 2019
@kkoomen kkoomen self-assigned this Jul 18, 2019
@vigoux
Copy link
Contributor Author

vigoux commented Jul 18, 2019

Wow that was fast !
Thanks for this great plugin !

@kkoomen
Copy link
Owner

kkoomen commented Jul 18, 2019

Wow that was fast !

Haha, I just finished all the bugs and then you came in with this so why not ¯_(ツ)_/¯

Thanks for this great plugin !

Thank you for helping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants