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

Messed up method signature for keyword arguments and *args #728

Closed
kopischke opened this issue Jan 15, 2014 · 2 comments
Closed

Messed up method signature for keyword arguments and *args #728

kopischke opened this issue Jan 15, 2014 · 2 comments
Labels

Comments

@kopischke
Copy link

Steps to reproduce:

  1. write a method with the following signature:

    def my_method(*args, option: false)
    
  2. document it using YARD:

    # @param args [Array] classic vintage args
    # @param kwargs [Boolean] :option (false) a new fangled kwarg
    
  3. run yardoc on the file with my_method

  4. open the YARD documentation for my_method

Expected result:

- (Object) my_method(*args, option: false)

Actual result:

- (Object) my_method(option: false, *args) 

Notes:

Keyword arguments correctly follow named args, but always precede the *args array.

@lsegal
Copy link
Owner

lsegal commented Jul 14, 2014

Should be resolved by #785.

@lsegal lsegal closed this as completed Jul 14, 2014
@aaronmcadam
Copy link

@lsegal I can confirm pointing at master works. Any idea when the next release will be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants