mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-12-19 03:42:22 -06:00
style: format codebase with ruff
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class BaseProfile:
|
||||
def __init__(self, **kwargs):
|
||||
self.__dict__.update({k: v for k, v in kwargs.items() if v is not None})
|
||||
|
||||
|
||||
class FetchProfile(BaseProfile):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -13,6 +15,7 @@ class FetchProfile(BaseProfile):
|
||||
number=number,
|
||||
)
|
||||
|
||||
|
||||
class ProfileName(BaseProfile):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -22,6 +25,7 @@ class ProfileName(BaseProfile):
|
||||
name=name,
|
||||
)
|
||||
|
||||
|
||||
class ProfileStatus(BaseProfile):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -31,6 +35,7 @@ class ProfileStatus(BaseProfile):
|
||||
status=status,
|
||||
)
|
||||
|
||||
|
||||
class ProfilePicture(BaseProfile):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -40,6 +45,7 @@ class ProfilePicture(BaseProfile):
|
||||
picture=picture,
|
||||
)
|
||||
|
||||
|
||||
class PrivacySettings(BaseProfile):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -57,4 +63,4 @@ class PrivacySettings(BaseProfile):
|
||||
online=online,
|
||||
last=last,
|
||||
groupadd=groupadd,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user