[anti_spam] Type annotations, linting

This commit is contained in:
wurstsalat
2022-11-29 19:30:31 +01:00
parent fae39c2c29
commit 171a6f5cf9
4 changed files with 21 additions and 13 deletions

View File

@@ -11,7 +11,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
#
'''
:author: Yann Leboulanger <asterix@lagaule.org>
@@ -30,7 +29,7 @@ from anti_spam.config_dialog import AntiSpamConfigDialog
class AntiSpamPlugin(GajimPlugin):
def init(self):
def init(self) -> None:
self.description = _('Allows you to block various kinds of incoming '
'messages (Spam, XHTML formatting, etc.)')
self.config_dialog = partial(AntiSpamConfigDialog, self)