Skip to content

Commit

Permalink
fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
seyoon-lim committed Aug 27, 2024
1 parent da491d4 commit 1828149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry_sdk/integrations/spark/spark_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from typing import Optional

from sentry_sdk._types import Event, Hint
from pyspark import SparkContext


class SparkIntegration(Integration):
Expand Down Expand Up @@ -38,7 +39,7 @@ def _set_app_properties():


def _start_sentry_listener(sc):
# type: (Any) -> None
# type: (SparkContext) -> None
"""
Start java gateway server to add custom `SparkListener`
"""
Expand All @@ -51,7 +52,7 @@ def _start_sentry_listener(sc):


def _add_event_processor(sc):
# type: (Any) -> None
# type: (SparkContext) -> None
scope = sentry_sdk.get_isolation_scope()

@scope.add_event_processor
Expand Down Expand Up @@ -88,7 +89,6 @@ def process_event(event, hint):

def _activate_integration(sc):
# type: (SparkContext) -> None
from pyspark import SparkContext

_start_sentry_listener(sc)
_set_app_properties()
Expand Down

0 comments on commit 1828149

Please sign in to comment.