mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
python: do not inherit from object
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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`.
|
||||||
|
|||||||
@@ -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`.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user