Skip to content

Is there a way to instantiate None object? #2856

Answered by Jasha10
hovnatan asked this question in Q&A
Discussion options

You must be logged in to vote

You could also instantiate types.NoneType (in python3.10+)

from types import NoneType
assert NoneType() is None

so _target_: types.NoneType could work.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@hovnatan
Comment options

@odelalleau
Comment options

@hovnatan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hovnatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants