Merge pull request #10093 from Calinou/variant-not-null

Document Variant not being nullable
This commit is contained in:
Max Hilbrunner
2024-10-18 05:32:34 +02:00
committed by GitHub
2 changed files with 122 additions and 23 deletions

View File

@@ -684,6 +684,11 @@ null
``null`` is an empty data type that contains no information and can not
be assigned any other value.
Only types that inherit from Object can have a ``null`` value
(Object is therefore called a "nullable" type).
:ref:`Variant types <doc_variant_class>` must have a valid value at all times,
and therefore cannot have a ``null`` value.
:ref:`bool <class_bool>`
^^^^^^^^^^^^^^^^^^^^^^^^