mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
fix: more pylint
This commit is contained in:
parent
836b91aa67
commit
417fceacb0
3 changed files with 17 additions and 6 deletions
|
@ -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}")'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue