Skip to content

Commit

Permalink
Fix Black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rg-gravis committed Sep 26, 2024
1 parent c02fbb8 commit fb72669
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions foxglove/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@ class Client:
def __init__(self, token: str, host: str = "api.foxglove.dev"):
self.__token = token
self.__session = requests.Session()
self.__session.headers.update({
"Content-type": "application/json",
"Authorization": "Bearer " + self.__token,
})
self.__session.headers.update(
{
"Content-type": "application/json",
"Authorization": "Bearer " + self.__token,
}
)
self.__host = host

def __url__(self, path: str):
Expand Down Expand Up @@ -226,9 +228,7 @@ def delete_event(
event_id: The id of the event to delete.
"""
response = self.__session.delete(
self.__url__(f"/v1/events/{event_id}")
)
response = self.__session.delete(self.__url__(f"/v1/events/{event_id}"))
return json_or_raise(response)

def get_events(
Expand Down Expand Up @@ -390,7 +390,9 @@ def download_recording_data(

json = json_or_raise(link_response)

return _download_stream_with_progress(json["link"], self.__session, callback=callback)
return _download_stream_with_progress(
json["link"], self.__session, callback=callback
)

def _make_stream_link(
self,
Expand Down

0 comments on commit fb72669

Please sign in to comment.