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)
| 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) |
no outgoing calls
no test coverage detected