View none_awareness.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A way the proposed ``??``, ``?.`` and ``?[`` operators could be implemented. | |
For now, this lacks an implementation for ``??=``. | |
""" | |
from __future__ import annotations | |
from types import NoneType | |
from typing import Hashable, NamedTuple |