python: do not inherit from object

This commit is contained in:
link2xt
2023-02-15 16:27:34 +00:00
parent 243f28f8a5
commit e021a59b87
7 changed files with 7 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ git_describe_command = "git describe --dirty --tags --long --match py-*.*"
line-length = 120 line-length = 120
[tool.ruff] [tool.ruff]
select = ["E", "F", "W", "YTT", "C4", "ISC", "ICN", "TID", "DTZ", "PLC", "PLE", "PLW", "PIE", "COM", "UP032"] select = ["E", "F", "W", "YTT", "C4", "ISC", "ICN", "TID", "DTZ", "PLC", "PLE", "PLW", "PIE", "COM", "UP004", "UP032"]
line-length = 120 line-length = 120
[tool.isort] [tool.isort]

View File

@@ -53,7 +53,7 @@ def get_dc_info_as_dict(dc_context):
return info_dict return info_dict
class Account(object): class Account:
"""Each account is tied to a sqlite database file which is fully managed """Each account is tied to a sqlite database file which is fully managed
by the underlying deltachat core library. All public Account methods are by the underlying deltachat core library. All public Account methods are
meant to be memory-safe and return memory-safe objects. meant to be memory-safe and return memory-safe objects.

View File

@@ -18,7 +18,7 @@ from .cutil import (
from .message import Message from .message import Message
class Chat(object): class Chat:
"""Chat object which manages members and through which you can send and retrieve messages. """Chat object which manages members and through which you can send and retrieve messages.
You obtain instances of it through :class:`deltachat.account.Account`. You obtain instances of it through :class:`deltachat.account.Account`.

View File

@@ -9,7 +9,7 @@ from .chat import Chat
from .cutil import from_dc_charpointer, from_optional_dc_charpointer from .cutil import from_dc_charpointer, from_optional_dc_charpointer
class Contact(object): class Contact:
"""Delta-Chat Contact. """Delta-Chat Contact.
You obtain instances of it through :class:`deltachat.account.Account`. You obtain instances of it through :class:`deltachat.account.Account`.

View File

@@ -12,7 +12,7 @@ from .cutil import as_dc_charpointer, from_dc_charpointer, from_optional_dc_char
from .reactions import Reactions from .reactions import Reactions
class Message(object): class Message:
"""Message object. """Message object.
You obtain instances of it through :class:`deltachat.account.Account` or You obtain instances of it through :class:`deltachat.account.Account` or

View File

@@ -8,7 +8,7 @@ class ProviderNotFoundError(Exception):
"""The provider information was not found.""" """The provider information was not found."""
class Provider(object): class Provider:
""" """
Provider information. Provider information.

View File

@@ -4,7 +4,7 @@ from .capi import ffi, lib
from .cutil import from_dc_charpointer, iter_array from .cutil import from_dc_charpointer, iter_array
class Reactions(object): class Reactions:
"""Reactions object. """Reactions object.
You obtain instances of it through :class:`deltachat.message.Message`. You obtain instances of it through :class:`deltachat.message.Message`.