Skip to content

Commit

Permalink
[FSSDK-8320] fix type hints (#429)
Browse files Browse the repository at this point in the history
* Create py.typed
  • Loading branch information
andrewleap-optimizely authored Dec 6, 2023
1 parent bf000e7 commit d2ed4be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optimizely/event/event_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class ForwardingEventProcessor(BaseEventProcessor):

def __init__(
self,
event_dispatcher: type[EventDispatcher] | CustomEventDispatcher,
event_dispatcher: Optional[type[EventDispatcher] | CustomEventDispatcher],
logger: Optional[_logging.Logger] = None,
notification_center: Optional[_notification_center.NotificationCenter] = None
):
Expand Down
2 changes: 1 addition & 1 deletion optimizely/optimizely_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def stringify_conditions(self, conditions: str | list[Any], audiences_map: dict[
operand = conditions[i].upper()
else:
# Check if element is a list or not
if type(conditions[i]) == list:
if isinstance(conditions[i], list):
# Check if at the end or not to determine where to add the operand
# Recursive call to call stringify on embedded list
if i + 1 < length:
Expand Down
1 change: 1 addition & 0 deletions optimizely/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit d2ed4be

Please sign in to comment.