src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py

branch
eric7
changeset 9595
2bd590c40309
parent 9593
89f885d857e4
child 9597
5f56fbdb3e3c
equal deleted inserted replaced
9594:bd9550caf22f 9595:2bd590c40309
342 Class defining the "Late Future Import" message. 342 Class defining the "Late Future Import" message.
343 """ 343 """
344 344
345 message_id = "F10" 345 message_id = "F10"
346 message = "from __future__ imports must occur at the beginning of the file" 346 message = "from __future__ imports must occur at the beginning of the file"
347 ##
348 ##def __init__(self, filename, loc):
349 ##"""
350 ##Constructor
351 ##
352 ##@param filename name of the file (string)
353 ##@param loc location of the issue
354 ##"""
355 ##Message.__init__(self, filename, loc)
356 ##self.message_args = ()
357 347
358 348
359 class FutureFeatureNotDefined(Message): 349 class FutureFeatureNotDefined(Message):
360 """ 350 """
361 Class defining the undefined __future__ feature message. 351 Class defining the undefined __future__ feature message.
404 Class defining the "Unused Annotation" message 394 Class defining the "Unused Annotation" message
405 395
406 Indicates that a variable has been explicitly annotated but not actually 396 Indicates that a variable has been explicitly annotated but not actually
407 used. 397 used.
408 """ 398 """
399
409 message_id = "F12" 400 message_id = "F12"
410 message = 'local variable %r is annotated but never used' 401 message = "local variable %r is annotated but never used"
411 402
412 def __init__(self, filename, loc, names): 403 def __init__(self, filename, loc, names):
413 Message.__init__(self, filename, loc) 404 Message.__init__(self, filename, loc)
414 self.message_args = (names,) 405 self.message_args = (names,)
415 406

eric ide

mercurial