mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
python: do not inherit from object
This commit is contained in:
@@ -53,7 +53,7 @@ def get_dc_info_as_dict(dc_context):
|
||||
return info_dict
|
||||
|
||||
|
||||
class Account(object):
|
||||
class Account:
|
||||
"""Each account is tied to a sqlite database file which is fully managed
|
||||
by the underlying deltachat core library. All public Account methods are
|
||||
meant to be memory-safe and return memory-safe objects.
|
||||
|
||||
@@ -18,7 +18,7 @@ from .cutil import (
|
||||
from .message import Message
|
||||
|
||||
|
||||
class Chat(object):
|
||||
class Chat:
|
||||
"""Chat object which manages members and through which you can send and retrieve messages.
|
||||
|
||||
You obtain instances of it through :class:`deltachat.account.Account`.
|
||||
|
||||
@@ -9,7 +9,7 @@ from .chat import Chat
|
||||
from .cutil import from_dc_charpointer, from_optional_dc_charpointer
|
||||
|
||||
|
||||
class Contact(object):
|
||||
class Contact:
|
||||
"""Delta-Chat Contact.
|
||||
|
||||
You obtain instances of it through :class:`deltachat.account.Account`.
|
||||
|
||||
@@ -12,7 +12,7 @@ from .cutil import as_dc_charpointer, from_dc_charpointer, from_optional_dc_char
|
||||
from .reactions import Reactions
|
||||
|
||||
|
||||
class Message(object):
|
||||
class Message:
|
||||
"""Message object.
|
||||
|
||||
You obtain instances of it through :class:`deltachat.account.Account` or
|
||||
|
||||
@@ -8,7 +8,7 @@ class ProviderNotFoundError(Exception):
|
||||
"""The provider information was not found."""
|
||||
|
||||
|
||||
class Provider(object):
|
||||
class Provider:
|
||||
"""
|
||||
Provider information.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from .capi import ffi, lib
|
||||
from .cutil import from_dc_charpointer, iter_array
|
||||
|
||||
|
||||
class Reactions(object):
|
||||
class Reactions:
|
||||
"""Reactions object.
|
||||
|
||||
You obtain instances of it through :class:`deltachat.message.Message`.
|
||||
|
||||
Reference in New Issue
Block a user