code: def get(self, *, kind: Type=None, tag: Hashable=None, **_) -> Iterator:
          
          if kind is None and tag is None:
              raise TypeError("get() takes at least one keyword-only argument. 'kind' or 'tag'.")
          kinds = self.all
          tags = self.all
          if kind is not None:
              kinds = self.kinds[kind]
          if tag is not None:
              tags = self.tags[tag]
          return (x for x in kinds.intersection(tags))
docs: Get an iterator of objects by kind or tag.
  
          kind: Any type. Pass to get a subset of contained items with the given
                type.
          tag: Any Hashable object. Pass to get a subset of contained items with
               the given tag.
  
          Pass both kind and tag to get objects that are both that type and that
          tag.
  
          Examples:
              container.get(type=MyObject)
  
              container.get(tag="red")
  
              container.get(type=MyObject, tag="red")