From 54da0d52fe49c9de02d64ebe84e659d1ce2c418d Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Wed, 21 Aug 2024 12:54:06 +0530 Subject: [PATCH] clean --- posthog/exception_capture.py | 2 +- posthog/exception_utils.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/posthog/exception_capture.py b/posthog/exception_capture.py index d5a2e8d..75beb18 100644 --- a/posthog/exception_capture.py +++ b/posthog/exception_capture.py @@ -1,7 +1,7 @@ +import json import sys import threading from typing import TYPE_CHECKING -import json from posthog.exception_utils import single_exception_from_error_tuple diff --git a/posthog/exception_utils.py b/posthog/exception_utils.py index d0ff81f..79db9c2 100644 --- a/posthog/exception_utils.py +++ b/posthog/exception_utils.py @@ -2,12 +2,12 @@ # 💖open source (under MIT License) # We want to keep payloads as similar to Sentry as possible for easy interoperability -from typing import TYPE_CHECKING import linecache import os import re import sys from datetime import datetime +from typing import TYPE_CHECKING try: # Python 3.11 @@ -26,19 +26,19 @@ from typing import ( Any, Callable, - cast, Dict, Iterator, List, + Literal, Optional, - overload, Set, Tuple, Type, + TypedDict, TypeVar, Union, - Literal, - TypedDict, + cast, + overload, ) ExcInfo = Union[