def disable_messages( self, *args ): """set messages, which should not be reported to you Usage example: decl.disable_messages( messages.W1001, messages.W1040 ) """ for msg in args: msg_id = messages.find_out_message_id( msg ) if not msg_id: raise RuntimeError( "Unable to find out message id. The message is: " + msg ) self.__msgs_to_ignore.add( msg )
def disable_messages( self, *args ): """ disable messages - `Py++` will not report the disabled messages Usage example: .. code-block:: python declaration.disable_messages( messages.W1001, messages.W1040 ) """ for msg in args: msg_id = messages.find_out_message_id( msg ) if not msg_id: raise RuntimeError( "Unable to find out message id. The message is: " + msg ) self.__msgs_to_ignore.add( msg )
def disable_messages( self, *args ): """ disable messages - `Py++` will not report the disabled messages Usage example: .. code-block:: python decl.disable_messages( messages.W1001, messages.W1040 ) """ for msg in args: msg_id = messages.find_out_message_id( msg ) if not msg_id: raise RuntimeError( "Unable to find out message id. The message is: " + msg ) self.__msgs_to_ignore.add( msg )