From a0885311fbf8380f77878d6dea177abab17b1845 Mon Sep 17 00:00:00 2001 From: danc Date: Tue, 26 Sep 2023 12:27:14 +0100 Subject: [PATCH] fixed use of pipe operator. --- .../generator/test_llm_command_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/dialogue_understanding/generator/test_llm_command_generator.py b/tests/dialogue_understanding/generator/test_llm_command_generator.py index dd0769303a04..78f73843708a 100644 --- a/tests/dialogue_understanding/generator/test_llm_command_generator.py +++ b/tests/dialogue_understanding/generator/test_llm_command_generator.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing import Optional, Any from unittest.mock import Mock, patch import pytest @@ -233,8 +233,8 @@ def test_coerce_slot_value( self, slot_name: str, slot: Slot, - slot_value: Optional[str | int | float | bool], - expected_output: Optional[str | int | float | bool], + slot_value: Any, + expected_output: Any, ): """Test that coerce_slot_value coerces the slot value correctly.""" # Given