<commit_before>__all__ = (
    'Category',
)


class Category(tuple):
    """
    This type acts as tuple with one key difference - two instances of it are
    equal only when they have the same type. This allows you to easily mitigate
    collisions when using common types (like string) in a dict or as a Wiring
    :term:`specification`.

    Example::

        from wiring import Graph, Category

        class Public(Category):
            pass

        class Secret(Category):
            pass

        graph = Graph()
        graph.register_instance(Public('database', 1), 'db://public/1')
        graph.register_instance(Private('database', 1), 'db://private/1')

        assert Public('database', 1) != Private('database', 1)
        assert (<commit_msg>Fix error in docstring example.<commit_after>__all__ = (
    'Category',
)


class Category(tuple):
    """
    This type acts as tuple with one key difference - two instances of it are
    equal only when they have the same type. This allows you to easily mitigate
    collisions when using common types (like string) in a dict or as a Wiring
    :term:`specification`.

    Example::

        from wiring import Graph, Category

        class Public(Category):
            pass

        class Secret(Category):
            pass

        graph = Graph()
        graph.register_instance(Public('database', 1), 'db://public/1')
        graph.register_instance(Secret('database', 1), 'db://private/1')

        assert Public('database', 1) != Private('database', 1)
        assert (
{'fraction_non_alphanumeric': 0.10304601425793908, 'fraction_numerical': 0.007777057679844459, 'mean_word_length': 2.541284403669725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5070808', 'n_tokens_mistral': 416, 'n_tokens_neox': 388, 'n_words': 150}