src/nitpick/core.py
def singleton(cls) -> "Nitpick":
        """Return a single instance of the class."""
        Nitpick._allow_init = True
        instance = cls()
        Nitpick._allow_init = False
        return instance
Return a single instance of the class.
Return a single instance of the class.
Return a single instance of the class .
def singleton(cls) -> "Nitpick":
        Nitpick._allow_init = True
        instance = cls()
        Nitpick._allow_init = False
        return instance
def singleton ( cls ) -> "Nitpick" : Nitpick . _allow_init = True instance = cls ( ) Nitpick . _allow_init = False return instance
Return a single instance of the class.
Return a single instance of the class .
"""Return a single instance of the class."""
cls