Skip to content

Commit feb7883

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 83a9cc6 commit feb7883

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

UnleashClient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
from UnleashClient.core import UnleashClientContract
3636
from UnleashClient.core.client import (
3737
Evaluator,
38-
RunState,
3938
ExperimentalMode,
39+
RunState,
4040
build_ready_callback,
4141
)
4242
from UnleashClient.events import BaseEvent

UnleashClient/core/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import uuid
12
from collections.abc import Callable
23
from dataclasses import asdict
4+
from datetime import datetime, timezone
35
from enum import IntEnum
46
from typing import Any, Dict, Optional
5-
import uuid
7+
68
from typing_extensions import Literal
7-
from datetime import datetime, timezone
89

910
from UnleashClient.events import (
1011
BaseEvent,

tests/unit_tests/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,9 @@ def test_existing_properties_are_retained_when_custom_context_properties_are_in_
12931293
context = {"myContext": "1234", "properties": {"yourContext": "1234"}}
12941294

12951295
assert "myContext" in unleash_client._evaluator._safe_context(context)["properties"]
1296-
assert "yourContext" in unleash_client._evaluator._safe_context(context)["properties"]
1296+
assert (
1297+
"yourContext" in unleash_client._evaluator._safe_context(context)["properties"]
1298+
)
12971299
unleash_client.destroy()
12981300

12991301

0 commit comments

Comments
 (0)