Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Non-delegate types should not be callable #1247

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

Merged
merged 1 commit into from
Oct 5, 2020
Merged

Conversation

alxnull
Copy link
Contributor

@alxnull alxnull commented Oct 5, 2020

What does this implement/fix? Explain your changes.

As mentioned in #1180, non-delegate types should not be appear as callable. Removed the ClassObject.tp_call method which seemed to be unused. Also added a test case.

Does this close any currently open issues?

Closes #1180.

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 to AUTHORS
  • Updated the CHANGELOG

@dnfadmin
Copy link

dnfadmin commented Oct 5, 2020

CLA assistant check
All CLA requirements met.

@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2020

Codecov Report

Merging #1247 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1247   +/-   ##
=======================================
  Coverage   86.25%   86.25%           
=======================================
  Files           1        1           
  Lines         291      291           
=======================================
  Hits          251      251           
  Misses         40       40           
Flag Coverage Δ
#setup_linux 64.94% <ø> (ø)
#setup_windows 72.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 by Codecov. Last update 50d947f...29a9009. Read the comment docs.

@lostmsu lostmsu merged commit 03cf4ac into pythonnet:master Oct 5, 2020
@lostmsu
Copy link
Member

lostmsu commented Oct 5, 2020

Excellent! Thank you!

@alxnull alxnull deleted the patch-1 branch October 5, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

string can't be callable
4 participants