def null_boolean(self) -> Optional[bool]:
        """Generate ``None``, ``True``, or ``False``, each with equal probability."""

        return {
            0: None,
            1: True,
            -1: False,
        }[self.generator.random.randint(-1, 1)]
Generate ``None``, ``True``, or ``False``, each with equal probability.
faker/providers/misc/__init__.py