Skip to content

Commit 5bfa7e5

Browse files
committed
isort
1 parent ce5dbc7 commit 5bfa7e5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

posthog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from posthog.client import Client
66
from posthog.exception_capture import Integrations # noqa: F401
7+
from posthog.scopes import clear_tags, get_tags, new_context, tag, tracked
78
from posthog.types import FeatureFlag, FlagsAndPayloads
8-
from posthog.scopes import new_context, tag, get_tags, clear_tags, tracked
99
from posthog.version import VERSION
1010

1111
__version__ = VERSION

posthog/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from dateutil.tz import tzutc
1515
from six import string_types
1616

17-
from posthog.scopes import get_tags
1817
from posthog.consumer import Consumer
1918
from posthog.exception_capture import ExceptionCapture
2019
from posthog.exception_utils import exc_info_from_error, exceptions_from_error_tuple, handle_in_app
@@ -30,6 +29,7 @@
3029
get,
3130
remote_config,
3231
)
32+
from posthog.scopes import get_tags
3333
from posthog.types import (
3434
FeatureFlag,
3535
FeatureFlagResult,

posthog/scopes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import threading
22
from contextlib import contextmanager
3-
from typing import Any, Dict, Callable, TypeVar, cast
3+
from typing import Any, Callable, Dict, TypeVar, cast
44

55
_scopes_local = threading.local()
66

@@ -101,6 +101,7 @@ def process_payment(payment_id):
101101
# and then re-raised
102102
"""
103103
from functools import wraps
104+
104105
import posthog
105106

106107
@wraps(func)

posthog/test/test_scopes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from unittest.mock import patch
33

4-
from posthog.scopes import new_context, tag, get_tags, clear_tags, tracked
4+
from posthog.scopes import clear_tags, get_tags, new_context, tag, tracked
55

66

77
class TestScopes(unittest.TestCase):

0 commit comments

Comments
 (0)