Hackfut Security File Manager
Current Path:
/opt/alt/python38/lib/python3.8/site-packages/attr
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
attr
/
📁
..
📄
__init__.py
(1.13 KB)
📁
__pycache__
📄
_compat.py
(4.19 KB)
📄
_config.py
(514 B)
📄
_funcs.py
(7.71 KB)
📄
_make.py
(48.14 KB)
📄
converters.py
(531 B)
📄
exceptions.py
(1.08 KB)
📄
filters.py
(1.12 KB)
📄
validators.py
(4.84 KB)
Editing: converters.py
""" Commonly useful converters. """ from __future__ import absolute_import, division, print_function def optional(converter): """ A converter that allows an attribute to be optional. An optional attribute is one which can be set to ``None``. :param callable converter: the converter that is used for non-``None`` values. .. versionadded:: 17.1.0 """ def optional_converter(val): if val is None: return None return converter(val) return optional_converter
Upload File
Create Folder