Document Variant not being nullable

This commit is contained in:
Hugo Locurcio
2024-10-15 23:22:19 +02:00
committed by Max Hilbrunner
parent c86adb0bda
commit b5e097d435
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>`
^^^^^^^^^^^^^^^^^^^^^^^^