Skip to content

__ne__ of dict return NotImplemented - #109

Merged
ncw merged 2 commits into
go-python:masterfrom
HyeockJinKim:issue108
Oct 8, 2019
Merged

__ne__ of dict return NotImplemented#109
ncw merged 2 commits into
go-python:masterfrom
HyeockJinKim:issue108

Conversation

@HyeockJinKim

Copy link
Copy Markdown
Contributor

if type of other is not dict,
return NotImplemented

Fixes#108

if type of other is not dict,
return NotImplemented
Fixesgo-python#108
@codecov-io

codecov-io commented Sep 30, 2019

Copy link
Copy Markdown

Codecov Report

Merging #109 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@## master #109 +/- ##
==========================================
+ Coverage 69.92% 70.02% +0.09% 
==========================================
Files 60 60 Lines 10819 10821 +2 ==========================================
+ Hits 7565 7577 +12 + Misses 2729 2718 -11 - Partials 525 526 +1
Impacted FilesCoverage Δ
py/dict.go71.87% <100%> (+8.04%)⬆️
py/bool.go34.04% <0%> (+6.38%)⬆️

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 36da816...fb48d32. Read the comment docs.

@HyeockJinKim

Copy link
Copy Markdown
ContributorAuthor

@corona10
Can I get a review?

@ncwncw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code looks great! I have a minor quibble with a comment so if you could fix that then I'll merge - thank you :-)

Comment threadpy/tests/dict.py Outdated
assert a.__eq__(3) != True
assert a.__ne__(3) != False
assert a.__ne__(3) != True
assert a.__ne__(3) != False # This part should be changed in comparison with NotImplemented

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this comment please? It is in the wrong place (it should be on the line above) and it refers to a bug which is fixed (or will be when this is merged) so will make no sense in the future.

The best way of making that sort of comment is to add a github comment to the review.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it. Would you like to review it again?

ncw
ncw approved these changes Oct 8, 2019
@ncw

ncw commented Oct 8, 2019

Copy link
Copy Markdown
Collaborator

Thank you :-)

We can think about more abstraction in a later PR if we want.

I'll merge this now.

@ncw
ncw merged commit 60e853c into go-python:masterOct 8, 2019
Sign up for freeto 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.

Dict.__ne__ doesn't return NotImplemented

3 participants

@HyeockJinKim@codecov-io@ncw