Skip to content

Commit d2ed4be

Browse files
[FSSDK-8320] fix type hints (#429)
* Create py.typed
1 parent bf000e7 commit d2ed4be

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

optimizely/event/event_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class ForwardingEventProcessor(BaseEventProcessor):
351351

352352
def __init__(
353353
self,
354-
event_dispatcher: type[EventDispatcher] | CustomEventDispatcher,
354+
event_dispatcher: Optional[type[EventDispatcher] | CustomEventDispatcher],
355355
logger: Optional[_logging.Logger] = None,
356356
notification_center: Optional[_notification_center.NotificationCenter] = None
357357
):

optimizely/optimizely_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def stringify_conditions(self, conditions: str | list[Any], audiences_map: dict[
243243
operand = conditions[i].upper()
244244
else:
245245
# Check if element is a list or not
246-
if type(conditions[i]) == list:
246+
if isinstance(conditions[i], list):
247247
# Check if at the end or not to determine where to add the operand
248248
# Recursive call to call stringify on embedded list
249249
if i + 1 < length:

optimizely/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)