Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2023
1 parent f51306d commit aa64316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nailgun/entity_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ def to_json_serializable(obj):

if isinstance(obj, dict):
return {k: to_json_serializable(v) for k, v in obj.items()}
elif isinstance(obj, (list, tuple)):
elif isinstance(obj, list | tuple):
return [to_json_serializable(v) for v in obj]
elif isinstance(obj, datetime):
return obj.strftime('%Y-%m-%d %H:%M:%S')
Expand Down
5 changes: 2 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Unit tests for :mod:`nailgun.client`."""
import inspect
from unittest import mock
from unittest import TestCase
from unittest import TestCase, mock

import requests
from fauxfactory import gen_alpha
import requests

from nailgun import client

Expand Down

0 comments on commit aa64316

Please sign in to comment.