blog/classes.py
2025-03-05 17:01:10 +01:00

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}")'