fix: more pylint

This commit is contained in:
Mathias DUPEUX 2025-03-05 17:01:10 +01:00
parent 836b91aa67
commit 417fceacb0
3 changed files with 17 additions and 6 deletions

View file

@ -1,8 +1,11 @@
"""File that combines classes"""
class Article:
"""Class symbolizing an article"""
def __init__(self, template, title, category="uncategorized"):
self.template = template
self.title = title
self.category = "uncategorized" if category == None else category
self.category = "uncategorized" if category is None else category
def __repr__(self):
return f'Article(title="{self.title}")'
return f'Article(title="{self.title}")'