anod.qualifier
==============

.. py:module:: anod.qualifier


Classes
-------

.. autoapisummary::

   anod.qualifier.Qualifier


Module Contents
---------------

.. py:class:: Qualifier

   Bases: :py:obj:`dict`


   dict() -> new empty dictionary
   dict(mapping) -> new dictionary initialized from a mapping object's
       (key, value) pairs
   dict(iterable) -> new dictionary initialized as if via:
       d = {}
       for k, v in iterable:
           d[k] = v
   dict(**kwargs) -> new dictionary initialized with the name=value pairs
       in the keyword argument list.  For example:  dict(one=1, two=2)


   .. py:method:: __sub__(other: Iterable[str]) -> Qualifier

      Create a new dict qualifier with some keys filtered-out.

      Examples:
          {"k1": "v1", "k2": "v2"} - {"k2"} == {"k1": "v1"}
          {"k1": "v1", "k2": "v2"} - {"k2": "v3"} == {"k1": "v1"}



   .. py:method:: __add__(other: dict | None) -> Qualifier

      Create a new dict qualifier that merges two dicts.

      The operation is equivalent to pipe operator with the difference that
      its priority is higher as defined by Python standard. This allows more
      natural expression that mix + and - operators (both operators have the
      same priority).



   .. py:method:: __and__(other: Iterable[str]) -> Qualifier

      Create a new dict qualifier with the subset other of the keys.

      Examples:
          {"k1": "v1", "k2": "v2"} & {"k2"} == {"k2": "v2"}
          {"k1": "v1", "k2": "v2"} & {"k2": "v3"} == {"k2": "v2"}



