lightbulb.internal.marker

class Marker(name: str)[source]

Simple class intended to be used in place of when you’d use an object as a marker, in order to provide a better repr.

Parameters:

name – The name of the marker.

Example

>>> FOO = object()
>>> FOO
<object object at 0x104cdc5f0>
>>> BAR = Marker("BAR")
>>> BAR
<lightbulb.Marker: BAR>