def __init__(
self: 'Property',
name: Optional[str],
value: _Prop_Value,
):
"""Create a new property instance.
"""
if name is None:
self._folded_name = self.real_name = None # type: Optional[str]
else:
self.real_name = sys.intern(name) # type: Optional[str]
self._folded_name = sys.intern(name.casefold()) # type: Optional[str]
self.value = value # type: _Prop_Value
评论列表
文章目录