mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-09 15:13:09 +00:00
11 lines
362 B
Python
11 lines
362 B
Python
"""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 is None else category
|
|
|
|
def __repr__(self):
|
|
return f'Article(title="{self.title}")'
|