Skip to content

Commit

Permalink
finally lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Mar 5, 2024
1 parent 1d21c55 commit 6095eb9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions nylas/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,9 @@ def _get_resource_data(self, cls, resource_id, extra=None, headers=None, **filte

def _create_resource(self, cls, data, **kwargs):
name = "{prefix}{path}".format(
prefix="/{}/{}".format(cls.api_root, self.client_id)
if cls.api_root
else "",
prefix=(
"/{}/{}".format(cls.api_root, self.client_id) if cls.api_root else ""
),
path="/{}".format(cls.collection_name) if cls.collection_name else "",
)
url = (
Expand Down Expand Up @@ -696,9 +696,9 @@ def _create_resource(self, cls, data, **kwargs):

def _create_resources(self, cls, data):
name = "{prefix}{path}".format(
prefix="/{}/{}".format(cls.api_root, self.client_id)
if cls.api_root
else "",
prefix=(
"/{}/{}".format(cls.api_root, self.client_id) if cls.api_root else ""
),
path="/{}".format(cls.collection_name) if cls.collection_name else "",
)
url = URLObject(self.api_server).with_path("{name}".format(name=name))
Expand All @@ -719,9 +719,9 @@ def _create_resources(self, cls, data):

def _delete_resource(self, cls, resource_id, data=None, **kwargs):
name = "{prefix}{path}".format(
prefix="/{}/{}".format(cls.api_root, self.client_id)
if cls.api_root
else "",
prefix=(
"/{}/{}".format(cls.api_root, self.client_id) if cls.api_root else ""
),
path="/{}".format(cls.collection_name) if cls.collection_name else "",
)
url = (
Expand All @@ -740,9 +740,9 @@ def _request_update_resource(
if path is None:
path = cls.collection_name
name = "{prefix}{path}".format(
prefix="/{}/{}".format(cls.api_root, self.client_id)
if cls.api_root
else "",
prefix=(
"/{}/{}".format(cls.api_root, self.client_id) if cls.api_root else ""
),
path="/{}".format(path) if path else "",
)

Expand Down

0 comments on commit 6095eb9

Please sign in to comment.