Files
rfd-notify/rfd_notify/models/topic.py
renovate[bot] 2608a4e8db Update dependency pylint to v4 (#424)
* Update dependency pylint to v4

* Ignore too-many-positional-arguments

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dave Gallant <davegallant@proton.me>
2026-01-18 08:21:03 -05:00

27 lines
614 B
Python

from .offer import Offer
class Topic:
# pylint: disable=unused-argument
# pylint: disable=too-many-arguments
# pylint: disable=too-many-positional-arguments
def __init__(
self,
topic_id: int,
title: str,
post_time: str,
web_path: str,
offer: dict,
**kwargs,
):
self.topic_id = topic_id
self.title = title
self.post_time = post_time
self.web_path = web_path
self.offer = None
if offer:
self.offer = Offer(**offer)
def __repr__(self):
return f"Topic({self.title})"