MCPcopy Index your code
hub / github.com/O365/python-o365 / new

Method new

O365/utils/utils.py:845–857  ·  view source on GitHub ↗

Combine with a new query :param str attribute: attribute of new query :param ChainOperator operation: operation to combine to new query :rtype: Query

(self, attribute, operation=ChainOperator.AND)

Source from the content-addressed store, hash-verified

843
844 @fluent
845 def new(self, attribute, operation=ChainOperator.AND):
846 """ Combine with a new query
847
848 :param str attribute: attribute of new query
849 :param ChainOperator operation: operation to combine to new query
850 :rtype: Query
851 """
852 if isinstance(operation, str):
853 operation = ChainOperator(operation)
854 self._chain = operation
855 self._attribute = self._get_mapping(attribute) if attribute else None
856 self._negation = False
857 return self
858
859 def clear_filters(self):
860 """ Clear filters """

Callers 1

__init__Method · 0.95

Calls 2

_get_mappingMethod · 0.95
ChainOperatorClass · 0.85

Tested by

no test coverage detected