/usr/lib/python3/dist-packages/behave/_types.py is in python3-behave 1.2.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # -*- coding: UTF-8 -*-
"""Basic types (helper classes)."""
class Unknown(object):
"""Placeholder for unknown/missing information, distinguishable from None.
.. code-block:: python
data = {}
value = data.get("name", Unknown)
if value is Unknown:
# -- DO SOMETHING
...
"""
|