Skip to content

Commit 11549f8

Browse files
committed
fix mypy errors
1 parent 59a03bd commit 11549f8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

growthbook/growthbook_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def _track(self, experiment: Experiment, result: Result, user_context: UserConte
355355
with self._tracked_lock:
356356
if not self._tracked.get(key):
357357
try:
358-
self.options.on_experiment_viewed(experiment=experiment, result=result, user_context=user_context)
358+
self.options.on_experiment_viewed(experiment, result, user_context)
359359
self._tracked[key] = True
360360
except Exception:
361361
logger.exception("Error in tracking callback")

growthbook/plugins/growthbook_tracking.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
from typing import Dict, Any, Optional, List, Callable
66
from .base import GrowthBookPlugin
77

8-
requests: Any = None
98
try:
109
import requests
1110
except ImportError:
12-
pass
11+
requests = None
1312

1413
logger = logging.getLogger("growthbook.plugins.growthbook_tracking")
1514

growthbook/plugins/request_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
self.client_side_attributes = client_side_attributes
7878
self.extract_utm = extract_utm
7979
self.extract_user_agent = extract_user_agent
80-
self._extracted_attributes = {}
80+
self._extracted_attributes: Dict[str, Any] = {}
8181

8282
def initialize(self, gb_instance) -> None:
8383
"""Initialize plugin - extract attributes from request context."""

0 commit comments

Comments
 (0)