-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
None unification #1278
Comments
Doing this should fix #299. |
Marked as needs discussion since it would be good to understand the consequences more precisely. |
This was referenced Apr 28, 2016
This was referenced Jul 29, 2016
gvanrossum
added
topic-strict-optional
and removed
topic-depends-on-strict-optional
labels
Apr 24, 2019
There is no more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently,
None
types in the code either mean:Void
type: a type that cannot be usedNone
: an uninhabited type (i.e. a type without any values)NoneTyp
type: the type that contains only the valueNone
(this cannot currently be explicitly specified)After doing proper Optional checking, I propose that we make
None
types always meanNoneTyp
. Optional checking will prevent functions that returnNone
from being used in places they shouldn't, and allowing users to specify something is the uninhabited type isn't currently useful at all.The text was updated successfully, but these errors were encountered: