Skip to content

Understand that types are not Optional if they're equal to a non-Optional type - #2313

Merged
gvanrossum merged 1 commit into
masterfrom
fix-equals-optional
Oct 25, 2016
Merged

gvanrossum merged 1 commit into
masterfrom
fix-equals-optional

Conversation

@ddfisher

Copy link
Copy Markdown
Collaborator

If x is some Optional type and y is some non-Optional type, now infer that x == y implies x is not Optional, as long as types x and y overlap.

Fixes #1825.

@ddfisher
ddfisher force-pushed the fix-equals-optional branch from 838545d to bef5f20 Compare October 24, 2016 22:55
@gvanrossum
gvanrossum merged commit 257c076 into master Oct 25, 2016
@ddfisher
ddfisher deleted the fix-equals-optional branch October 26, 2016 19:25
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.

2 participants