You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
548 B
20 lines
548 B
4 years ago
|
# -*- coding: utf-8 -*-
|
||
|
# Copyright 2009-2019 Joshua Bronson. All Rights Reserved.
|
||
|
#
|
||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
|
||
|
"""Provides :class:`_Marker`, an internal type for representing singletons."""
|
||
|
|
||
|
from collections import namedtuple
|
||
|
|
||
|
|
||
|
class _Marker(namedtuple('_Marker', 'name')):
|
||
|
|
||
|
__slots__ = ()
|
||
|
|
||
|
def __repr__(self):
|
||
|
return '<%s>' % self.name # pragma: no cover
|