484 Assertion test is a tuple, which are always True. |
484 Assertion test is a tuple, which are always True. |
485 """ |
485 """ |
486 message_id = 'F28' |
486 message_id = 'F28' |
487 message = 'assertion is always true, perhaps remove parentheses?' |
487 message = 'assertion is always true, perhaps remove parentheses?' |
488 |
488 |
|
489 |
|
490 class ForwardAnnotationSyntaxError(Message): |
|
491 """ |
|
492 Class defining the "forward annotation syntax error" message. |
|
493 |
|
494 Found a syntax error in forward annotation. |
|
495 """ |
|
496 message_id = 'F29' |
|
497 message = 'syntax error in forward annotation %r' |
|
498 |
|
499 def __init__(self, filename, loc, annotation): |
|
500 """ |
|
501 Constructor |
|
502 |
|
503 @param filename name of the file (string) |
|
504 @param loc location of the issue |
|
505 @param annotation erroneous forward annotation (string) |
|
506 """ |
|
507 Message.__init__(self, filename, loc) |
|
508 self.message_args = (annotation,) |
|
509 |
|
510 |
|
511 class RaiseNotImplemented(Message): |
|
512 """ |
|
513 Class defining the "raise not implemented" message. |
|
514 |
|
515 Use NotImplementedError instead of NotImplemented. |
|
516 """ |
|
517 message_id = 'F30' |
|
518 message = "'raise NotImplemented' should be 'raise NotImplementedError'" |
|
519 |
489 # |
520 # |
490 # eflag: noqa = M702 |
521 # eflag: noqa = M702 |