Skip to content

Commit 86af698

Browse files
committed
black
1 parent c79c1c1 commit 86af698

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

posthog/scopes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
# Use contextvars if available (Python 3.7+), otherwise fall back to threading.local
66
if sys.version_info >= (3, 7):
77
import contextvars
8-
_context_stack: contextvars.ContextVar[list] = contextvars.ContextVar(
9-
'posthog_context_stack',
10-
default=[{}]
11-
)
8+
9+
_context_stack: contextvars.ContextVar[list] = contextvars.ContextVar("posthog_context_stack", default=[{}])
1210
_use_contextvars = True
1311
else:
1412
import threading
13+
1514
_scopes_local = threading.local()
1615
_use_contextvars = False
1716

0 commit comments

Comments
 (0)