diff --git a/fbchat/_attachment.py b/fbchat/_attachment.py index 24dc17b..ec48721 100644 --- a/fbchat/_attachment.py +++ b/fbchat/_attachment.py @@ -3,7 +3,7 @@ from . import _util @attr.s(cmp=False) -class Attachment(object): +class Attachment: """Represents a Facebook attachment.""" #: The attachment ID diff --git a/fbchat/_client.py b/fbchat/_client.py index 3d009e0..ec7efee 100644 --- a/fbchat/_client.py +++ b/fbchat/_client.py @@ -20,7 +20,7 @@ ACONTEXT = { } -class Client(object): +class Client: """A client for the Facebook Chat (Messenger). This is the main class of ``fbchat``, which contains all the methods you use to diff --git a/fbchat/_message.py b/fbchat/_message.py index 60a52c5..9f6afa6 100644 --- a/fbchat/_message.py +++ b/fbchat/_message.py @@ -43,7 +43,7 @@ class MessageReaction(Enum): @attr.s(cmp=False) -class Mention(object): +class Mention: """Represents a ``@mention``.""" #: The thread ID the mention is pointing at @@ -55,7 +55,7 @@ class Mention(object): @attr.s(cmp=False) -class Message(object): +class Message: """Represents a Facebook message.""" #: The actual message diff --git a/fbchat/_plan.py b/fbchat/_plan.py index d0dc576..1a3c5bd 100644 --- a/fbchat/_plan.py +++ b/fbchat/_plan.py @@ -10,7 +10,7 @@ class GuestStatus(Enum): @attr.s(cmp=False) -class Plan(object): +class Plan: """Represents a plan.""" #: ID of the plan diff --git a/fbchat/_poll.py b/fbchat/_poll.py index 554d91e..08c6de6 100644 --- a/fbchat/_poll.py +++ b/fbchat/_poll.py @@ -2,7 +2,7 @@ import attr @attr.s(cmp=False) -class Poll(object): +class Poll: """Represents a poll.""" #: Title of the poll @@ -25,7 +25,7 @@ class Poll(object): @attr.s(cmp=False) -class PollOption(object): +class PollOption: """Represents a poll option.""" #: Text of the poll option diff --git a/fbchat/_quick_reply.py b/fbchat/_quick_reply.py index 147632d..5a9a262 100644 --- a/fbchat/_quick_reply.py +++ b/fbchat/_quick_reply.py @@ -3,7 +3,7 @@ from ._attachment import Attachment @attr.s(cmp=False) -class QuickReply(object): +class QuickReply: """Represents a quick reply.""" #: Payload of the quick reply diff --git a/fbchat/_state.py b/fbchat/_state.py index ed7b3f2..8062b16 100644 --- a/fbchat/_state.py +++ b/fbchat/_state.py @@ -97,7 +97,7 @@ def _2fa_helper(session, code, r): @attr.s(slots=True) # TODO i Python 3: Add kw_only=True -class State(object): +class State: """Stores and manages state required for most Facebook requests.""" user_id = attr.ib() diff --git a/fbchat/_thread.py b/fbchat/_thread.py index c3f4ab6..e39b4b4 100644 --- a/fbchat/_thread.py +++ b/fbchat/_thread.py @@ -70,7 +70,7 @@ class ThreadColor(Enum): @attr.s(cmp=False, init=False) -class Thread(object): +class Thread: """Represents a Facebook thread.""" #: The unique identifier of the thread. Can be used a ``thread_id``. See :ref:`intro_threads` for more info diff --git a/fbchat/_user.py b/fbchat/_user.py index af70dbb..b864b13 100644 --- a/fbchat/_user.py +++ b/fbchat/_user.py @@ -180,7 +180,7 @@ class User(Thread): @attr.s(cmp=False) -class ActiveStatus(object): +class ActiveStatus: #: Whether the user is active now active = attr.ib(None) #: Timestamp when the user was last active