Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Select correct method to invoke when keyword arguments are used#1242

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 1 commit intopythonnet:masterfromdanabr:wrong-arity-with-kwargs
Oct 1, 2020

Conversation

danabr
Copy link
Contributor

What does this implement/fix? Explain your changes.

If there were two methods with the same name, but with different arity,
Foo(a) andFoo(a,b), and the latter was called with a keyword
argumentsome.Foo(0, b=1),Foo(0) would be called instead of
Foo(0,1).

Does this close any currently open issues?

Fixes#1235.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • [] If an enhancement PR, please create docs and at best an example
  • [] Add yourself toAUTHORS
  • Updated theCHANGELOG

If there were two methods with the same name, but with different arity,`Foo(a)` and `Foo(a,b)`, and the latter was called with a keywordargument `some.Foo(0, b=1)`, `Foo(0)` would be called instead of`Foo(0,1)`.Fixespythonnet#1235.
@codecov-commenter
Copy link

codecov-commenter commentedSep 30, 2020
edited
Loading

Codecov Report

Merging#1242 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           Coverage Diff           @@##           master    #1242   +/-   ##=======================================  Coverage   86.25%   86.25%           =======================================  Files           1        1             Lines         291      291           =======================================  Hits          251      251             Misses         40       40
FlagCoverage Δ
#setup_linux64.94% <ø> (ø)
#setup_windows72.50% <ø> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.


Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updateb5ba815...29fccdb. Read thecomment docs.

@filmor
Copy link
Member

Great thanks :)

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

@filmorfilmorfilmor approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Wrong method chosen if argument is passed as keyword argument
3 participants
@danabr@codecov-commenter@filmor

[8]ページ先頭

©2009-2025 Movatter.jp