MCPcopy
hub / github.com/powerline/powerline / context_message

Method context_message

powerline/lint/spec.py:178–192  ·  view source on GitHub ↗

Define message that describes context :param str msg: Message that describes context. Is written using the :py:meth:`str.format` syntax and is expected to display keyword parameter ``key``. :return: self.

(self, msg)

Source from the content-addressed store, hash-verified

176 return self
177
178 def context_message(self, msg):
179 '''Define message that describes context
180
181 :param str msg:
182 Message that describes context. Is written using the
183 :py:meth:`str.format` syntax and is expected to display keyword
184 parameter ``key``.
185
186 :return: self.
187 '''
188 self.cmsg = msg
189 for spec in self.specs:
190 if not spec.cmsg:
191 spec.context_message(msg)
192 return self
193
194 def check_type(self, value, context_mark, data, context, echoerr, types):
195 '''Check that given value matches given type(s)

Callers 2

__init__.pyFile · 0.80
checks.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected