-
-
Save m-vdb/94216371b17bc1a3918c79255d39684b to your computer and use it in GitHub Desktop.
Type error details (extracted from GH action logs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rasa/constants.py:57: error: Need type annotation for 'CONFIG_MANDATORY_KEYS_CORE' (hint: "CONFIG_MANDATORY_KEYS_CORE: List[<type>] = ...") [var-annotated] | |
rasa/nlu/utils/hugging_face/transformers_pre_post_processors.py:27: error: Incompatible return value type (got "Tuple[Tuple[int, ...], Tuple[str, ...]]", expected "Tuple[List[int], List[str]]") [return-value] | |
rasa/nlu/training_data/lookup_tables_parser.py:17: error: Dict entry 0 has incompatible type "str": "str"; expected "str": "List[str]" [dict-item] | |
rasa/nlu/emulators/wit.py:10: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/nlu/emulators/wit.py:12: error: Return type "List[Dict[str, Any]]" of "normalise_response_json" incompatible with return type "Dict[str, Any]" in supertype "NoEmulator" [override] | |
rasa/nlu/emulators/luis.py:11: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/utils/tensorflow/model_data.py:173: error: Need type annotation for 'solo_values' [var-annotated] | |
rasa/utils/tensorflow/model_data.py:276: error: Incompatible return value type (got "Tuple[None, ...]", expected "Tuple[Optional[Any]]") [return-value] | |
rasa/utils/tensorflow/model_data.py:288: error: Argument 1 to "append" of "list" has incompatible type "Tuple[None]"; expected "Tuple[None, Any]" [arg-type] | |
rasa/utils/tensorflow/model_data.py:291: error: Argument 1 to "append" of "list" has incompatible type "Tuple[None]"; expected "Tuple[None, Any]" [arg-type] | |
rasa/utils/tensorflow/model_data.py:295: error: Argument 1 to "append" of "list" has incompatible type "Tuple[None, None, Any]"; expected "Tuple[None, Any]" [arg-type] | |
rasa/utils/tensorflow/model_data.py:351: error: Need type annotation for 'new_data' [var-annotated] | |
rasa/utils/tensorflow/model_data.py:438: error: Need type annotation for 'new_data' [var-annotated] | |
rasa/nlu/emulators/dialogflow.py:13: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/nlu/emulators/dialogflow.py:19: error: Need type annotation for 'entities' [var-annotated] | |
rasa/core/lock.py:33: error: Argument "number" to "Ticket" has incompatible type "Union[int, float]"; expected "int" [arg-type] | |
rasa/core/lock.py:57: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/core/lock.py:58: error: Argument 1 to "TicketLock" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/utils/io.py:122: error: Incompatible types in assignment (expression has type "Tuple[int, int]", variable has type "None") [assignment] | |
rasa/utils/io.py:123: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/utils/io.py:292: error: Incompatible types in assignment (expression has type "int", variable has type "None") [assignment] | |
rasa/utils/io.py:448: error: Need type annotation for 'results' (hint: "results: List[<type>] = ...") [var-annotated] | |
rasa/utils/endpoints.py:99: error: Incompatible types in assignment (expression has type "None", variable has type "BasicAuth") [assignment] | |
rasa/utils/endpoints.py:143: error: Argument 1 to "concat_url" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/utils/endpoints.py:154: error: Argument 2 to "ClientResponseError" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/utils/endpoints.py:154: error: Argument 3 to "ClientResponseError" has incompatible type "bytes"; expected "str" [arg-type] | |
rasa/core/config.py:19: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, Dict[Any, Any], None]" [type-var] | |
rasa/core/training/__init__.py:91: error: Incompatible return value type (got "List[TrackerWithCachedStates]", expected "List[DialogueStateTracker]") [return-value] | |
rasa/core/training/__init__.py:91: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/__init__.py:91: note: Consider using "Sequence" instead, which is covariant | |
rasa/cli/utils.py:186: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/utils/tensorflow/transformer.py:107: error: Incompatible types in assignment (expression has type "Tuple[int, int, int]", variable has type "Optional[Tuple[int, int]]") [assignment] | |
rasa/utils/tensorflow/transformer.py:132: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int") [assignment] | |
rasa/utils/tensorflow/transformer.py:142: error: Unsupported operand types for - ("None" and "int") [operator] | |
rasa/utils/tensorflow/transformer.py:142: note: Left operand is of type "Optional[int]" | |
rasa/nlu/training_data/message.py:114: error: Incompatible types in assignment (expression has type "List[Dict[str, Any]]", target has type "str") [assignment] | |
rasa/nlu/training_data/message.py:165: error: Incompatible types in assignment (expression has type "Union[Any, Any, None]", variable has type "List[Features]") [assignment] | |
rasa/nlu/training_data/message.py:166: error: Incompatible types in assignment (expression has type "Union[Any, Any, None]", variable has type "List[Features]") [assignment] | |
rasa/nlu/training_data/message.py:192: error: Incompatible types in assignment (expression has type "Union[Any, Any, None]", variable has type "List[Features]") [assignment] | |
rasa/nlu/training_data/message.py:193: error: Incompatible types in assignment (expression has type "Union[Any, Any, None]", variable has type "List[Features]") [assignment] | |
rasa/nlu/training_data/formats/readerwriter.py:32: error: Incompatible types in assignment (expression has type "Union[str, Path]", variable has type "str") [assignment] | |
rasa/nlu/training_data/formats/readerwriter.py:56: error: Need type annotation for 'training_examples' [var-annotated] | |
rasa/utils/common.py:32: error: Missing return statement [return] | |
rasa/utils/common.py:66: error: Incompatible types in assignment (expression has type "Union[str, int, None]", variable has type "Optional[int]") [assignment] | |
rasa/utils/common.py:67: error: Argument 1 to "getLevelName" has incompatible type "Optional[int]"; expected "Union[int, str]" [arg-type] | |
rasa/utils/common.py:69: error: Argument 1 to "setLevel" of "Logger" has incompatible type "Optional[int]"; expected "Union[int, str]" [arg-type] | |
rasa/utils/common.py:76: error: Argument 1 to "getLevelName" has incompatible type "Optional[int]"; expected "Union[int, str]" [arg-type] | |
rasa/utils/common.py:329: error: 'property' used with a non-method [misc] | |
rasa/utils/common.py:372: error: Argument 2 has incompatible type "Optional[Type[Warning]]"; expected "Type[Warning]" [arg-type] | |
rasa/utils/common.py:372: error: Argument 4 has incompatible type "Optional[int]"; expected "int" [arg-type] | |
rasa/core/lock_store.py:228: error: Missing return statement [return] | |
rasa/core/lock_store.py:245: error: Need type annotation for 'conversation_locks' (hint: "conversation_locks: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/lock_store.py:275: error: Incompatible types in assignment (expression has type "RedisLockStore", variable has type "InMemoryLockStore") [assignment] | |
rasa/core/lock_store.py:275: error: Argument "host" to "RedisLockStore" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/lock_store.py:277: error: Incompatible types in assignment (expression has type "LockStore", variable has type "InMemoryLockStore") [assignment] | |
rasa/core/utils.py:197: error: "YAML" has no attribute "unicode_supplementary" [attr-defined] | |
rasa/core/utils.py:199: error: Incompatible types in assignment (expression has type "Tuple[int, int]", variable has type "None") [assignment] | |
rasa/core/utils.py:455: error: Argument 1 to "get_validated_path" has incompatible type "Union[Path, str, None]"; expected "Optional[str]" [arg-type] | |
rasa/core/utils.py:457: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:95: note: "test" defined here | |
rasa/test.py:122: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:131: error: Argument 1 to "get_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:151: error: Incompatible types in assignment (expression has type "NaturalLanguageInterpreter", variable has type "RegexInterpreter") [assignment] | |
rasa/test.py:160: error: Incompatible import of "test" (imported name has type "Callable[[str, Agent, Optional[int], Optional[str], bool, bool, bool, bool, bool], Coroutine[Any, Any, Dict[str, Any]]]", local name has type "Callable[[str, str, str, Optional[str], str, Optional[Dict[Any, Any]]], Any]") [misc] | |
rasa/test.py:170: error: Incompatible import of "test" (imported name has type "Callable[[str, Agent, Optional[int], Optional[str], bool, bool, bool, bool, bool], Coroutine[Any, Any, Dict[str, Any]]]", local name has type "Callable[[str, str, str, Optional[str], str, Optional[Dict[Any, Any]]], Any]") [misc] | |
rasa/test.py:174: error: Unexpected keyword argument "out_directory" for "test" [call-arg] | |
rasa/test.py:174: error: Argument 1 to "test" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:174: error: Argument 2 to "test" has incompatible type "Agent"; expected "str" [arg-type] | |
rasa/test.py:188: error: Argument 1 to "get_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:202: error: Argument 1 to "minimal_kwargs" has incompatible type "Optional[Dict[Any, Any]]"; expected "Dict[str, Any]" [arg-type] | |
rasa/test.py:204: error: Argument 1 to "run_evaluation" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/test.py:235: error: Need type annotation for 'f1_score_results' [var-annotated] | |
rasa/run.py:56: error: Argument 5 to "serve_application" has incompatible type "**Dict[str, Dict[Any, Any]]"; expected "int" [arg-type] | |
rasa/run.py:56: error: Argument 5 to "serve_application" has incompatible type "**Dict[str, Dict[Any, Any]]"; expected "Union[str, List[str], None]" [arg-type] | |
rasa/run.py:56: error: Argument 5 to "serve_application" has incompatible type "**Dict[str, Dict[Any, Any]]"; expected "Optional[str]" [arg-type] | |
rasa/run.py:56: error: Argument 5 to "serve_application" has incompatible type "**Dict[str, Dict[Any, Any]]"; expected "bool" [arg-type] | |
rasa/run.py:66: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/model.py:139: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] | |
rasa/model.py:220: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/model.py:223: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/model.py:318: error: Unsupported right operand type for in ("Optional[List[str]]") [operator] | |
rasa/model.py:388: error: Missing return statement [return] | |
rasa/model.py:427: error: Argument 1 to "move_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/model.py:436: error: Argument 1 to "move_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/utils/tensorflow/models.py:83: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:127: error: Argument 2 to "split" of "RasaModelData" has incompatible type "Optional[int]"; expected "int" [arg-type] | |
rasa/utils/tensorflow/models.py:166: error: Argument 1 to "_batch_loop" of "RasaModel" has incompatible type "Optional[Callable[..., Any]]"; expected "Callable[..., Any]" [arg-type] | |
rasa/utils/tensorflow/models.py:167: error: Argument 2 to "_batch_loop" of "RasaModel" has incompatible type "Optional[Callable[..., Any]]"; expected "Callable[..., Any]" [arg-type] | |
rasa/utils/tensorflow/models.py:232: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:233: error: Incompatible types in assignment (expression has type "Callable[..., Any]", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:245: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:246: error: "None" not callable [misc] | |
rasa/utils/tensorflow/models.py:302: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:345: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/utils/tensorflow/models.py:362: error: Item "None" of "Optional[RasaModelData]" has no attribute "as_tf_dataset" [union-attr] | |
rasa/utils/tensorflow/models.py:366: error: Incompatible types in assignment (expression has type "bool", variable has type "None") [assignment] | |
rasa/nlu/persistor.py:20: error: Argument 1 to "AWSPersistor" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/persistor.py:23: error: Argument 1 to "GCSPersistor" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/persistor.py:27: error: Argument 1 to "AzurePersistor" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/persistor.py:28: error: Argument 2 to "AzurePersistor" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/persistor.py:29: error: Argument 3 to "AzurePersistor" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/persistor.py:177: error: Return type "None" of "_retrieve_tar" incompatible with return type "str" in supertype "Persistor" [override] | |
rasa/nlu/persistor.py:227: error: Return type "None" of "_retrieve_tar" incompatible with return type "str" in supertype "Persistor" [override] | |
rasa/nlu/persistor.py:276: error: Return type "None" of "_retrieve_tar" incompatible with return type "str" in supertype "Persistor" [override] | |
rasa/nlu/config.py:98: error: Need type annotation for 'pipeline' (hint: "pipeline: List[<type>] = ...") [var-annotated] | |
rasa/nlu/training_data/entities_parser.py:110: error: Argument 1 to "EntityAttributes" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/training_data/formats/markdown_nlg.py:21: error: Need type annotation for 'responses' (hint: "responses: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/training_data/formats/markdown_nlg.py:27: error: Cannot access "__init__" directly [misc] | |
rasa/nlu/training_data/formats/markdown_nlg.py:75: error: Argument "exc_info" to "error" of "Logger" has incompatible type "int"; expected "Union[None, bool, Union[Tuple[type, BaseException, Optional[TracebackType]], Tuple[None, None, None]], BaseException]" [arg-type] | |
rasa/nlu/training_data/formats/markdown.py:47: error: Need type annotation for 'training_examples' (hint: "training_examples: List[<type>] = ...") [var-annotated] | |
rasa/nlu/training_data/formats/markdown.py:48: error: Need type annotation for 'entity_synonyms' (hint: "entity_synonyms: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/training_data/formats/markdown.py:49: error: Need type annotation for 'regex_features' (hint: "regex_features: List[<type>] = ...") [var-annotated] | |
rasa/nlu/training_data/formats/markdown.py:50: error: Need type annotation for 'lookup_tables' (hint: "lookup_tables: List[<type>] = ...") [var-annotated] | |
rasa/nlu/training_data/formats/markdown.py:128: error: Argument 2 to "add_synonym" has incompatible type "None"; expected "str" [arg-type] | |
rasa/nlu/training_data/formats/markdown.py:136: error: Argument 1 to "add_item_to_lookup_tables" has incompatible type "None"; expected "str" [arg-type] | |
rasa/nlu/training_data/formats/markdown.py:203: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/nlu/training_data/formats/markdown.py:204: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/nlu/training_data/formats/markdown.py:229: error: Need type annotation for 'training_examples' [var-annotated] | |
rasa/importers/autoconfig.py:154: error: Incompatible types in assignment (expression has type "str", variable has type "Set[str]") [assignment] | |
rasa/importers/autoconfig.py:169: error: Incompatible types in assignment (expression has type "str", variable has type "Dict[str, Any]") [assignment] | |
rasa/core/slots.py:98: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:128: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:130: error: Argument 1 to "float" has incompatible type "Optional[Any]"; expected "Union[SupportsFloat, _SupportsIndex, str, bytes, bytearray]" [arg-type] | |
rasa/core/slots.py:147: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:149: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:164: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:166: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:171: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:173: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:185: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:187: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:195: error: Incompatible types in assignment (expression has type "str", base class "Slot" defined the type as "None") [assignment] | |
rasa/core/slots.py:218: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/slots.py:260: error: Return type "List[float]" of "as_feature" incompatible with return type "NoReturn" in supertype "Slot" [override] | |
rasa/core/events/__init__.py:173: error: Argument 1 to "len" has incompatible type "Optional[List[Event]]"; expected "Sized" [arg-type] | |
rasa/core/events/__init__.py:311: error: Argument 1 to "_from_parse_data" of "UserUttered" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/events/__init__.py:312: error: Argument 2 to "_from_parse_data" of "UserUttered" has incompatible type "Optional[Any]"; expected "Dict[str, Any]" [arg-type] | |
rasa/core/events/__init__.py:341: error: Incompatible return value type (got "Optional[str]", expected "str") [return-value] | |
rasa/core/events/__init__.py:344: error: Incompatible types in assignment (expression has type "UserUttered", variable has type "None") [assignment] | |
rasa/core/events/__init__.py:404: error: Incompatible types in assignment (expression has type "BotUttered", variable has type "None") [assignment] | |
rasa/core/events/__init__.py:495: error: Incompatible return value type (got "List[SlotSet]", expected "Optional[List[Event]]") [return-value] | |
rasa/core/events/__init__.py:694: error: Argument 1 to "parse" has incompatible type "Optional[Any]"; expected "Union[bytes, str, IO[str], IO[Any]]" [arg-type] | |
rasa/core/events/__init__.py:698: error: Argument 1 to "ReminderScheduled" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/events/__init__.py:917: error: Argument 1 to "FollowupAction" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/events/__init__.py:1027: error: Argument 1 to "ActionExecuted" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/events/__init__.py:1150: error: Return type "List[ActiveLoop]" of "_from_story_string" incompatible with return type "Optional[List[Event]]" in supertype "Event" [override] | |
rasa/core/events/__init__.py:1166: error: Argument 1 to "change_loop_to" of "DialogueStateTracker" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/channels/channel.py:290: error: Need type annotation for 'messages' (hint: "messages: List[<type>] = ...") [var-annotated] | |
rasa/core/brokers/broker.py:62: error: Incompatible types in assignment (expression has type "SQLEventBroker", variable has type "Optional[PikaEventBroker]") [assignment] | |
rasa/core/brokers/broker.py:66: error: Incompatible types in assignment (expression has type "Optional[FileEventBroker]", variable has type "Optional[PikaEventBroker]") [assignment] | |
rasa/core/brokers/broker.py:70: error: Incompatible types in assignment (expression has type "Optional[KafkaEventBroker]", variable has type "Optional[PikaEventBroker]") [assignment] | |
rasa/core/brokers/broker.py:72: error: Incompatible types in assignment (expression has type "Optional[EventBroker]", variable has type "Optional[PikaEventBroker]") [assignment] | |
rasa/nlu/training_data/formats/dialogflow.py:27: error: Argument 1 of "read" is incompatible with supertype "TrainingDataReader"; supertype defines the argument type as "Union[str, Path]" [override] | |
rasa/nlu/training_data/formats/dialogflow.py:27: note: This violates the Liskov substitution principle | |
rasa/nlu/training_data/formats/dialogflow.py:27: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/core/conversation.py:39: error: Argument 1 to "Dialogue" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/conversation.py:40: error: List comprehension has incompatible type List[Optional[Event]]; expected List[Event] [misc] | |
rasa/core/conversation.py:40: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/core/channels/webexteams.py:59: error: Argument 1 to "WebexTeamsInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/socketio.py:73: error: "Sequence[str]" has no attribute "append" [attr-defined] | |
rasa/core/channels/socketio.py:108: error: Argument 2 of "send_attachment" is incompatible with supertype "OutputChannel"; supertype defines the argument type as "str" [override] | |
rasa/core/channels/socketio.py:108: note: This violates the Liskov substitution principle | |
rasa/core/channels/socketio.py:108: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/core/channels/socketio.py:157: error: Return value expected [return-value] | |
rasa/core/channels/slack.py:43: error: Incompatible types in "await" (actual type "Union[Future[Any], SlackResponse]", expected type "Awaitable[Any]") [misc] | |
rasa/core/channels/slack.py:45: error: Incompatible types in "await" (actual type "Union[Future[Any], SlackResponse]", expected type "Awaitable[Any]") [misc] | |
rasa/core/channels/slack.py:66: error: Argument 2 of "send_attachment" is incompatible with supertype "OutputChannel"; supertype defines the argument type as "str" [override] | |
rasa/core/channels/slack.py:66: note: This violates the Liskov substitution principle | |
rasa/core/channels/slack.py:66: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/core/channels/slack.py:94: error: "Sequence[str]" has no attribute "append" [attr-defined] | |
rasa/core/channels/slack.py:131: error: Argument 1 to "SlackInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/slack.py:202: error: Incompatible return value type (got "Union[Any, None, bool]", expected "bool") [return-value] | |
rasa/core/channels/slack.py:279: error: Missing return statement [return] | |
rasa/core/channels/rocketchat.py:113: error: Argument 1 to "RocketChatInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/rocketchat.py:114: error: Argument 2 to "RocketChatInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/rocketchat.py:115: error: Argument 3 to "RocketChatInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/rest.py:70: error: Need type annotation for 'q' [var-annotated] | |
rasa/core/channels/rest.py:92: error: Item "None" of "Optional[Module]" has no attribute "__name__" [union-attr] | |
rasa/core/channels/rest.py:113: error: Argument 2 to "stream_response" of "RestInput" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/channels/rest.py:113: error: Argument 3 to "stream_response" of "RestInput" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/channels/rest.py:156: error: Incompatible types in assignment (expression has type "Queue[Any]", variable has type "List[Any]") [assignment] | |
rasa/core/channels/rest.py:162: error: "List[Any]" has no attribute "put" [attr-defined] | |
rasa/core/channels/mattermost.py:144: error: Argument 1 to "token_from_login" of "MattermostBot" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/mattermost.py:144: error: Argument 2 to "token_from_login" of "MattermostBot" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/mattermost.py:144: error: Argument 3 to "token_from_login" of "MattermostBot" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/mattermost.py:149: error: Argument 1 to "MattermostInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/mattermost.py:149: error: Argument 2 to "MattermostInput" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/channels/mattermost.py:149: error: Argument 3 to "MattermostInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/hangouts.py:26: error: Need type annotation for 'messages' (hint: "messages: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/channels/hangouts.py:59: error: Return value expected [return-value] | |
rasa/core/channels/hangouts.py:103: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/core/channels/hangouts.py:135: error: Dict entry 0 has incompatible type "str": "Optional[Any]"; expected "str": "str" [dict-item] | |
rasa/core/channels/hangouts.py:155: error: Argument 1 to "_persist_message" of "HangoutsOutput" has incompatible type "Optional[Dict[Any, Any]]"; expected "Dict[Any, Any]" [arg-type] | |
rasa/core/channels/hangouts.py:242: error: Missing return statement [return] | |
rasa/core/channels/facebook.py:312: error: Argument 1 to "FacebookInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/facebook.py:313: error: Argument 2 to "FacebookInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/facebook.py:314: error: Argument 3 to "FacebookInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/botframework.py:49: error: Missing return statement [return] | |
rasa/core/channels/botframework.py:180: error: Argument 1 to "BotFrameworkInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/channels/botframework.py:180: error: Argument 2 to "BotFrameworkInput" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/brokers/sql.py:25: error: Variable "rasa.core.brokers.sql.SQLEventBroker.Base" is not valid as a type [valid-type] | |
rasa/core/brokers/sql.py:25: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases | |
rasa/core/brokers/sql.py:25: error: Invalid base class "Base" [misc] | |
rasa/core/brokers/pika.py:376: error: Return type "Optional[PikaEventBroker]" of "from_endpoint_config" incompatible with return type "EventBroker" in supertype "EventBroker" [override] | |
rasa/core/brokers/pika.py:390: error: Argument 1 to "PikaEventBroker" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/brokers/pika.py:527: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment] | |
rasa/core/brokers/pika.py:530: error: Incompatible types in assignment (expression has type "Dict[str, str]", target has type "int") [assignment] | |
rasa/core/brokers/pika.py:537: error: Item "None" of "Optional[Any]" has no attribute "basic_publish" [union-attr] | |
rasa/core/brokers/kafka.py:42: error: Return type "Optional[KafkaEventBroker]" of "from_endpoint_config" incompatible with return type "EventBroker" in supertype "EventBroker" [override] | |
rasa/core/brokers/kafka.py:77: error: "None" has no attribute "send" [attr-defined] | |
rasa/core/brokers/kafka.py:80: error: "None" has no attribute "close" [attr-defined] | |
rasa/core/brokers/file.py:26: error: Return type "Optional[FileEventBroker]" of "from_endpoint_config" incompatible with return type "EventBroker" in supertype "EventBroker" [override] | |
rasa/nlu/training_data/loading.py:71: error: Incompatible types in assignment (expression has type "Optional[TrainingData]", variable has type "TrainingData") [assignment] | |
rasa/nlu/training_data/loading.py:73: error: Item "None" of "Optional[TrainingData]" has no attribute "merge" [union-attr] | |
rasa/nlu/training_data/loading.py:73: error: Argument 1 to "merge" of "TrainingData" has incompatible type "*List[Optional[TrainingData]]"; expected "TrainingData" [arg-type] | |
rasa/nlu/training_data/loading.py:78: error: Missing return statement [return] | |
rasa/nlu/training_data/loading.py:84: error: Argument 1 to "is_url" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/training_data/loading.py:88: error: Item "None" of "Optional[Any]" has no attribute "raise_for_status" [union-attr] | |
rasa/nlu/training_data/loading.py:89: error: Item "None" of "Optional[Any]" has no attribute "content" [union-attr] | |
rasa/nlu/training_data/loading.py:92: error: Incompatible return value type (got "Optional[TrainingData]", expected "TrainingData") [return-value] | |
rasa/nlu/training_data/loading.py:113: error: Incompatible types in assignment (expression has type "WitReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:115: error: Incompatible types in assignment (expression has type "DialogflowReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:117: error: Incompatible types in assignment (expression has type "RasaReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:119: error: Incompatible types in assignment (expression has type "MarkdownReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:121: error: Incompatible types in assignment (expression has type "NLGMarkdownReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:123: error: Incompatible types in assignment (expression has type "RasaYAMLReader", variable has type "Optional[LuisReader]") [assignment] | |
rasa/nlu/training_data/loading.py:142: error: Missing return statement [return] | |
rasa/core/channels/rasa_chat.py:78: error: Argument 2 to "decode" has incompatible type "None"; expected "Union[str, bytes, RSAPublicKey, RSAPrivateKey]" [arg-type] | |
rasa/core/channels/rasa_chat.py:81: error: Missing return statement [return] | |
rasa/core/channels/rasa_chat.py:88: error: Module has no attribute "exceptions" [attr-defined] | |
rasa/core/channels/rasa_chat.py:110: error: Argument 1 to "_has_user_permission_to_send_messages_to_conversation" of "RasaChatInput" has incompatible type "Optional[Dict[Any, Any]]"; expected "Dict[Any, Any]" [arg-type] | |
rasa/core/channels/rasa_chat.py:117: error: Value of type "Optional[Dict[Any, Any]]" is not indexable [index] | |
rasa/core/channels/rasa_chat.py:122: error: Value of type "Optional[Dict[Any, Any]]" is not indexable [index] | |
rasa/nlu/training_data/training_data.py:73: error: Incompatible types in assignment (expression has type "List[TrainingData]", variable has type "Tuple[TrainingData, ...]") [assignment] | |
rasa/nlu/training_data/training_data.py:575: error: Argument 1 to "len" has incompatible type "object"; expected "Sized" [arg-type] | |
rasa/nlu/training_data/formats/rasa_yaml.py:77: error: Signature of "reads" incompatible with supertype "TrainingDataReader" [override] | |
rasa/nlu/training_data/formats/rasa_yaml.py:198: error: Incompatible types in assignment (expression has type "Iterator[str]", variable has type "List[Any]") [assignment] | |
rasa/nlu/training_data/formats/rasa_yaml.py:408: error: Incompatible types in assignment (expression has type "List[OrderedDict[Any, Any]]", target has type "DoubleQuotedScalarString") [assignment] | |
rasa/nlu/training_data/formats/rasa_yaml.py:411: error: Incompatible types in assignment (expression has type "Dict[str, List[Dict[str, Any]]]", target has type "DoubleQuotedScalarString") [assignment] | |
rasa/nlu/training_data/formats/rasa_yaml.py:417: error: Incompatible types in assignment (expression has type "OrderedDict[Any, Any]", variable has type "TrainingData") [assignment] | |
rasa/nlu/training_data/formats/rasa_yaml.py:419: error: Argument 1 to "process_training_examples_by_key" of "RasaYAMLWriter" has incompatible type "TrainingData"; expected "Dict[Any, Any]" [arg-type] | |
rasa/nlu/training_data/formats/rasa_yaml.py:427: error: Need type annotation for 'inverted_synonyms' [var-annotated] | |
rasa/nlu/training_data/formats/rasa_yaml.py:439: error: Need type annotation for 'inverted_regexes' [var-annotated] | |
rasa/nlu/components.py:276: error: Cannot determine type of 'component_config' [has-type] | |
rasa/nlu/components.py:391: error: Need type annotation for 'defaults' (hint: "defaults: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/components.py:489: error: Argument 1 to "UnsupportedLanguageError" has incompatible type "Callable[[Component], Any]"; expected "str" [arg-type] | |
rasa/nlu/components.py:619: error: Incompatible types in assignment (expression has type "List[Component]", variable has type "None") [assignment] | |
rasa/nlu/components.py:620: error: Incompatible types in assignment (expression has type "Dict[str, Any]", variable has type "None") [assignment] | |
rasa/nlu/components.py:684: error: Need type annotation for 'component_cache' (hint: "component_cache: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/components.py:754: error: Argument 1 to "__add_to_cache" of "ComponentBuilder" has incompatible type "Optional[Component]"; expected "Component" [arg-type] | |
rasa/nlu/components.py:755: error: Incompatible return value type (got "Optional[Component]", expected "Component") [return-value] | |
rasa/nlu/components.py:787: error: Argument 1 to "__add_to_cache" of "ComponentBuilder" has incompatible type "Optional[Component]"; expected "Component" [arg-type] | |
rasa/nlu/components.py:788: error: Incompatible return value type (got "Optional[Component]", expected "Component") [return-value] | |
rasa/nlu/components.py:802: error: Incompatible return value type (got "Component", expected "C") [return-value] | |
rasa/utils/train_utils.py:47: error: Unsupported operand types for < ("int" and "None") [operator] | |
rasa/utils/train_utils.py:47: note: Right operand is of type "Optional[int]" | |
rasa/utils/train_utils.py:47: error: Unsupported operand types for > ("int" and "None") [operator] | |
rasa/utils/train_utils.py:47: note: Left operand is of type "Optional[int]" | |
rasa/utils/train_utils.py:49: error: Unsupported operand types for - ("None" and "int") [operator] | |
rasa/utils/train_utils.py:49: note: Left operand is of type "Optional[int]" | |
rasa/nlu/tokenizers/whitespace_tokenizer.py:24: error: Incompatible types in assignment (expression has type "List[str]", base class "Component" defined the type as "None") [assignment] | |
rasa/nlu/tokenizers/jieba_tokenizer.py:90: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/model.py:192: error: "train" of "Component" does not return a value [func-returns-value] | |
rasa/nlu/model.py:312: error: Need type annotation for 'context' (hint: "context: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/model.py:329: error: Argument 2 to "load_component" of "ComponentBuilder" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/model.py:374: error: Argument "time" to "Message" has incompatible type "Optional[datetime]"; expected "Optional[str]" [arg-type] | |
rasa/core/actions/action.py:233: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/actions/action.py:401: error: Argument 1 to "extend" of "list" has incompatible type "List[SlotSet]"; expected "Iterable[SessionStarted]" [arg-type] | |
rasa/core/actions/action.py:403: error: Argument 1 to "append" of "list" has incompatible type "ActionExecuted"; expected "SessionStarted" [arg-type] | |
rasa/core/actions/action.py:405: error: Incompatible return value type (got "List[SessionStarted]", expected "List[Event]") [return-value] | |
rasa/core/actions/action.py:405: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/action.py:405: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/action.py:405: note: Perhaps you need a type annotation for "_events"? Suggestion: "List[Event]" | |
rasa/core/actions/action.py:567: error: Argument 1 to "_validate_action_result" of "RemoteAction" has incompatible type "Optional[Any]"; expected "Dict[str, Any]" [arg-type] | |
rasa/core/actions/action.py:569: error: Item "None" of "Optional[Any]" has no attribute "get" [union-attr] | |
rasa/core/actions/action.py:570: error: Item "None" of "Optional[Any]" has no attribute "get" [union-attr] | |
rasa/core/actions/action.py:576: error: Incompatible return value type (got "List[BotUttered]", expected "List[Event]") [return-value] | |
rasa/core/actions/action.py:576: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/action.py:576: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/action.py:576: error: Unsupported operand types for + ("List[BotUttered]" and "List[Event]") [operator] | |
rasa/core/actions/action.py:670: error: Item "Event" of "Optional[Event]" has no attribute "parse_data" [union-attr] | |
rasa/core/actions/action.py:670: error: Item "None" of "Optional[Event]" has no attribute "parse_data" [union-attr] | |
rasa/core/actions/action.py:679: error: List item 0 has incompatible type "Optional[Event]"; expected "Event" [list-item] | |
rasa/core/actions/action.py:728: error: "None" has no attribute "intent" [attr-defined] | |
rasa/core/actions/action.py:730: error: "None" has no attribute "intent" [attr-defined] | |
rasa/nlu/train.py:97: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/nlu/test.py:419: error: Incompatible types in assignment (expression has type "Dict[str, Dict[str, Union[Dict[Any, Any], Any]]]", variable has type "Union[str, Dict[str, Dict[str, float]]]") [assignment] | |
rasa/nlu/test.py:419: error: Argument 1 to "_add_confused_labels_to_report" has incompatible type "Union[str, Dict[str, Dict[str, float]]]"; expected "Dict[str, Dict[str, Any]]" [arg-type] | |
rasa/nlu/test.py:598: error: Incompatible types in assignment (expression has type "Dict[str, Dict[str, Union[Dict[Any, Any], Any]]]", variable has type "Union[str, Dict[str, Dict[str, float]]]") [assignment] | |
rasa/nlu/test.py:598: error: Argument 1 to "_add_confused_labels_to_report" has incompatible type "Union[str, Dict[str, Dict[str, float]]]"; expected "Dict[str, Dict[str, Any]]" [arg-type] | |
rasa/nlu/test.py:902: error: Incompatible types in assignment (expression has type "Dict[str, Dict[str, Union[Dict[Any, Any], Any]]]", variable has type "Union[str, Dict[str, Dict[str, float]]]") [assignment] | |
rasa/nlu/test.py:903: error: Argument 1 to "_add_confused_labels_to_report" has incompatible type "Union[str, Dict[str, Dict[str, float]]]"; expected "Dict[str, Dict[str, Any]]" [arg-type] | |
rasa/nlu/test.py:1476: error: Item "None" of "Optional[Metadata]" has no attribute "language" [union-attr] | |
rasa/nlu/test.py:1616: error: Missing return statement [return] | |
rasa/nlu/test.py:1781: error: Need type annotation for 'intent_metrics' (hint: "intent_metrics: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/test.py:1791: error: Need type annotation for 'response_selection_metrics' (hint: "response_selection_metrics: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/test.py:1891: error: Argument 1 to "get_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/domain.py:371: error: Need type annotation for 'intent_properties' (hint: "intent_properties: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/domain.py:470: error: Argument 1 to "collect_intent_properties" of "Domain" has incompatible type "Union[Set[str], List[Union[str, Dict[str, Any]]]]"; expected "List[Union[str, Dict[str, Any]]]" [arg-type] | |
rasa/core/domain.py:479: error: Attribute 'forms' already defined on line 477 [no-redef] | |
rasa/core/domain.py:479: error: Incompatible types in assignment (expression has type "List[Union[str, Dict[Any, Any]]]", variable has type "List[Dict[Any, Any]]") [assignment] | |
rasa/core/domain.py:480: error: Item "str" of "Union[str, Dict[Any, Any]]" has no attribute "keys" [union-attr] | |
rasa/core/domain.py:494: error: Unsupported operand types for + ("List[str]" and "List[Union[str, Dict[Any, Any]]]") [operator] | |
rasa/core/domain.py:589: error: Argument 4 to "action_from_name" has incompatible type "Union[bool, Dict[Any, Any]]"; expected "bool" [arg-type] | |
rasa/core/domain.py:698: error: Need type annotation for 'state_dict' (hint: "state_dict: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/domain.py:743: error: Argument 1 to "intent_config" of "Domain" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/domain.py:773: error: Unsupported operand types for + ("str" and "bool") [operator] | |
rasa/core/domain.py:773: error: Unsupported operand types for + ("str" and "Dict[Any, Any]") [operator] | |
rasa/core/domain.py:773: note: Right operand is of type "Union[str, bool, Dict[Any, Any]]" | |
rasa/core/domain.py:893: error: Argument 1 to "set" has incompatible type "Union[bool, List[Any]]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/domain.py:904: error: Incompatible return value type (got "List[Dict[str, Dict[str, Union[bool, List[Any]]]]]", expected "List[Union[str, Dict[str, Any]]]") [return-value] | |
rasa/core/domain.py:904: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/domain.py:904: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/domain.py:904: note: Perhaps you need a type annotation for "intents_for_file"? Suggestion: "List[Union[str, Dict[str, Any]]]" | |
rasa/core/domain.py:963: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[bool, List[Any]]], Dict[str, Any]]" [arg-type] | |
rasa/nlu/__init__.py:11: error: Cannot determine type of '__version__' [has-type] | |
rasa/core/visualize.py:47: error: Incompatible types in assignment (expression has type "TrainingData", variable has type "str") [assignment] | |
rasa/core/trackers.py:176: error: List comprehension has incompatible type List[Dict[str, Any]]; expected List[Event] [misc] | |
rasa/core/trackers.py:184: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/trackers.py:223: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/trackers.py:250: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/core/trackers.py:295: error: "None" has no attribute "entities" [attr-defined] | |
rasa/core/trackers.py:363: error: Need type annotation for 'applied_events' (hint: "applied_events: List[<type>] = ...") [var-annotated] | |
rasa/core/trackers.py:601: error: Incompatible types in assignment (expression has type "Optional[Event]", variable has type "Optional[ActionExecuted]") [assignment] | |
rasa/core/trackers.py:617: error: Incompatible types in assignment (expression has type "UserUttered", variable has type "None") [assignment] | |
rasa/core/trackers.py:618: error: Incompatible types in assignment (expression has type "BotUttered", variable has type "None") [assignment] | |
rasa/core/trackers.py:662: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/core/trackers.py:673: error: "None" has no attribute "entities" [attr-defined] | |
rasa/core/trackers.py:689: error: Incompatible return value type (got "Union[str, bool, Dict[Any, Any], None]", expected "Optional[str]") [return-value] | |
rasa/core/interpreter.py:49: error: Argument 1 to "_create_from_endpoint_config" has incompatible type "Union[EndpointConfig, str, None]"; expected "Optional[EndpointConfig]" [arg-type] | |
rasa/core/interpreter.py:226: error: Item "None" of "Optional[str]" has no attribute "endswith" [union-attr] | |
rasa/core/interpreter.py:227: error: Unsupported left operand type for + ("None") [operator] | |
rasa/core/interpreter.py:227: note: Left operand is of type "Optional[str]" | |
rasa/core/interpreter.py:229: error: Unsupported left operand type for + ("None") [operator] | |
rasa/core/interpreter.py:229: note: Left operand is of type "Optional[str]" | |
rasa/core/interpreter.py:277: error: "None" has no attribute "parse" [attr-defined] | |
rasa/core/interpreter.py:284: error: Incompatible types in assignment (expression has type "Interpreter", variable has type "None") [assignment] | |
rasa/core/training/structures.py:143: error: Incompatible types in assignment (expression has type "Union[Event, List[Event]]", variable has type "Checkpoint") [assignment] | |
rasa/core/training/structures.py:145: error: Argument 1 to "_is_action_listen" of "StoryStep" has incompatible type "Checkpoint"; expected "Event" [arg-type] | |
rasa/core/training/structures.py:146: error: Argument 1 to "_is_action_session_start" of "StoryStep" has incompatible type "Checkpoint"; expected "Event" [arg-type] | |
rasa/core/training/structures.py:170: error: "Event" has no attribute "action_name" [attr-defined] | |
rasa/core/training/structures.py:180: error: "Event" has no attribute "action_name" [attr-defined] | |
rasa/core/training/structures.py:200: error: Need type annotation for 'events' (hint: "events: List[<type>] = ...") [var-annotated] | |
rasa/core/training/structures.py:206: error: Argument 1 to "extend" of "list" has incompatible type "List[SlotSet]"; expected "Iterable[UserUttered]" [arg-type] | |
rasa/core/training/structures.py:208: error: Argument 1 to "append" of "list" has incompatible type "Union[Event, List[Event]]"; expected "UserUttered" [arg-type] | |
rasa/core/training/structures.py:211: error: Argument 1 to "_add_action_listen" of "StoryStep" has incompatible type "List[UserUttered]"; expected "List[Event]" [arg-type] | |
rasa/core/training/structures.py:211: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/structures.py:211: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/training/structures.py:213: error: Incompatible return value type (got "List[UserUttered]", expected "List[Union[Event, List[Event]]]") [return-value] | |
rasa/core/training/structures.py:213: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/structures.py:213: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/training/structures.py:213: note: Perhaps you need a type annotation for "events"? Suggestion: "List[Union[Event, List[Event]]]" | |
rasa/core/training/structures.py:256: error: Argument 2 to "Dialogue" has incompatible type "List[Union[Event, List[Event]]]"; expected "List[Event]" [arg-type] | |
rasa/core/training/structures.py:307: error: List comprehension has incompatible type List[Optional[StoryStep]]; expected List[StoryStep] [misc] | |
rasa/core/training/structures.py:333: error: Incompatible return value type (got "Set[Optional[str]]", expected "Set[str]") [return-value] | |
rasa/core/training/structures.py:506: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/structures.py:509: error: Incompatible return value type (got "Set[Optional[str]]", expected "Set[str]") [return-value] | |
rasa/core/training/structures.py:533: error: Invalid index type "Optional[str]" for "Dict[str, List[StoryStep]]"; expected type "str" [index] | |
rasa/core/training/structures.py:549: error: Incompatible return value type (got "defaultdict[Optional[str], List[StoryStep]]", expected "Dict[str, List[StoryStep]]") [return-value] | |
rasa/core/training/structures.py:576: error: Need type annotation for 'ordered' [var-annotated] | |
rasa/core/training/structures.py:613: error: Invalid index type "Optional[str]" for "Dict[str, int]"; expected type "str" [index] | |
rasa/core/training/structures.py:615: error: Item "None" of "Optional[str]" has no attribute "startswith" [union-attr] | |
rasa/core/training/structures.py:617: error: Value of type "Optional[str]" is not indexable [index] | |
rasa/core/training/structures.py:620: error: Argument 1 to "cap_length" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/structures.py:625: error: Argument 1 to "cap_length" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/structures.py:638: error: Argument 1 to "cap_length" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/structures.py:646: error: Invalid index type "Optional[str]" for "Dict[str, int]"; expected type "str" [index] | |
rasa/core/training/structures.py:649: error: Invalid index type "Optional[str]" for "Dict[str, int]"; expected type "str" [index] | |
rasa/importers/importer.py:158: error: Incompatible types in assignment (expression has type "Type[MultiProjectImporter]", variable has type "Type[RasaFileImporter]") [assignment] | |
rasa/importers/importer.py:169: error: Too many arguments [call-arg] | |
rasa/importers/importer.py:238: error: Argument 1 to "update" of "dict" has incompatible type "Union[Coroutine[Any, Any, Dict[Any, Any]], Dict[<nothing>, <nothing>]]"; expected "Mapping[Any, Any]" [arg-type] | |
rasa/importers/importer.py:245: error: Argument 1 to "merge" of "Domain" has incompatible type "Coroutine[Any, Any, Domain]"; expected "Optional[Domain]" [arg-type] | |
rasa/importers/importer.py:264: error: Argument 1 to "merge" of "StoryGraph" has incompatible type "Coroutine[Any, Any, StoryGraph]"; expected "Optional[StoryGraph]" [arg-type] | |
rasa/importers/importer.py:272: error: Argument 1 to "merge" of "TrainingData" has incompatible type "Coroutine[Any, Any, TrainingData]"; expected "TrainingData" [arg-type] | |
rasa/train.py:63: error: Missing return statement [return] | |
rasa/train.py:94: error: Argument 2 to "load_from_config" of "TrainingDataImporter" has incompatible type "Union[Domain, str]"; expected "Optional[str]" [arg-type] | |
rasa/train.py:94: error: Argument 3 to "load_from_config" of "TrainingDataImporter" has incompatible type "Union[str, List[str], None]"; expected "Optional[List[str]]" [arg-type] | |
rasa/train.py:97: error: Need type annotation for 'train_path' [var-annotated] | |
rasa/train.py:97: error: Argument 1 to "enter_context" of "ExitStack" has incompatible type "TempDirectoryPath"; expected "ContextManager[<nothing>]" [arg-type] | |
rasa/train.py:168: error: Return value expected [return-value] | |
rasa/train.py:194: error: Argument 2 to "should_retrain" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/train.py:219: error: Value of type variable "AnyStr" of "abspath" cannot be "Optional[str]" [type-var] | |
rasa/train.py:248: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/train.py:262: error: Argument "interpreter" to "_train_core_with_validated_data" has incompatible type "Optional[NaturalLanguageInterpreter]"; expected "Optional[Interpreter]" [arg-type] | |
rasa/train.py:289: error: Missing return statement [return] | |
rasa/train.py:352: error: Argument 2 to "load_core_importer_from_config" of "TrainingDataImporter" has incompatible type "Union[Domain, str]"; expected "Optional[str]" [arg-type] | |
rasa/train.py:367: error: Return value expected [return-value] | |
rasa/train.py:378: error: Missing return statement [return] | |
rasa/train.py:396: error: Argument 1 to "enter_context" of "ExitStack" has incompatible type "TempDirectoryPath"; expected "ContextManager[<nothing>]" [arg-type] | |
rasa/train.py:409: error: Argument "interpreter" to "train" has incompatible type "Optional[Interpreter]"; expected "Optional[NaturalLanguageInterpreter]" [arg-type] | |
rasa/train.py:511: error: Missing return statement [return] | |
rasa/train.py:532: error: Argument 1 to "enter_context" of "ExitStack" has incompatible type "TempDirectoryPath"; expected "ContextManager[<nothing>]" [arg-type] | |
rasa/core/__init__.py:10: error: Cannot determine type of '__version__' [has-type] | |
rasa/nlu/utils/spacy_utils.py:92: error: Unsupported left operand type for + ("Callable[[Component], Any]") [operator] | |
rasa/nlu/utils/spacy_utils.py:99: error: "None" not callable [misc] | |
rasa/nlu/utils/spacy_utils.py:159: error: Item "None" of "Optional[Any]" has no attribute "pipe" [union-attr] | |
rasa/nlu/utils/spacy_utils.py:177: error: Item "None" of "Optional[Any]" has no attribute "vocab" [union-attr] | |
rasa/nlu/utils/spacy_utils.py:212: error: Signature of "train" incompatible with supertype "Component" [override] | |
rasa/nlu/utils/spacy_utils.py:232: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/utils/spacy_utils.py:232: note: This violates the Liskov substitution principle | |
rasa/nlu/utils/spacy_utils.py:232: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/utils/spacy_utils.py:246: error: Argument 1 to "load_model" of "SpacyNLP" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/nlu/utils/mitie_utils.py:64: error: Unsupported left operand type for + ("Callable[[Component], Any]") [operator] | |
rasa/nlu/utils/mitie_utils.py:87: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/utils/mitie_utils.py:87: note: This violates the Liskov substitution principle | |
rasa/nlu/utils/mitie_utils.py:87: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/tokenizers/convert_tokenizer.py:89: error: List comprehension has incompatible type List[str]; expected List[bytes] [misc] | |
rasa/nlu/tokenizers/convert_tokenizer.py:90: error: List comprehension has incompatible type List[bytes]; expected List[str] [misc] | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:129: error: Incompatible types in assignment (expression has type "List[Match[str]]", variable has type "Iterator[Match[str]]") [assignment] | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:129: note: 'list' is missing following 'Iterator' protocol member: | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:129: note: __next__ | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:151: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:151: note: This violates the Liskov substitution principle | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:151: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:161: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py:161: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:138: error: Cannot determine type of 'vectorizers' [has-type] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:146: error: Cannot determine type of 'vectorizers' [has-type] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:155: error: Item "None" of "Optional[Dict[str, int]]" has no attribute "keys" [union-attr] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:245: error: Unsupported right operand type for in ("Optional[Dict[str, int]]") [operator] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:251: error: Unsupported right operand type for in ("Optional[List[str]]") [operator] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:402: error: Need type annotation for 'sequence_features' (hint: "sequence_features: List[<type>] = ...") [var-annotated] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:403: error: Need type annotation for 'sentence_features' (hint: "sentence_features: List[<type>] = ...") [var-annotated] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:422: error: Value of type "Optional[Dict[str, Any]]" is not indexable [index] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:429: error: Value of type "Optional[Dict[str, Any]]" is not indexable [index] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:479: error: Signature of "train" incompatible with supertype "Component" [override] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:585: error: Incompatible types in assignment (expression has type "Dict[str, Optional[Dict[str, int]]]", variable has type "Optional[Dict[str, int]]") [assignment] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:646: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:646: note: This violates the Liskov substitution principle | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:646: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:656: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:656: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py:678: error: Value of type "Optional[Dict[str, Any]]" is not indexable [index] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:127: error: Value of type "Optional[Any]" is not indexable [index] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:205: error: Item "None" of "Optional[Any]" has no attribute "predict_proba" [union-attr] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:237: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:237: note: This violates the Liskov substitution principle | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:247: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:247: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:248: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/sklearn_intent_classifier.py:248: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/keyword_intent_classifier.py:137: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/classifiers/keyword_intent_classifier.py:137: note: This violates the Liskov substitution principle | |
rasa/nlu/classifiers/keyword_intent_classifier.py:137: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/classifiers/keyword_intent_classifier.py:148: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/keyword_intent_classifier.py:160: error: Argument 1 to "abspath" has incompatible type "Optional[Any]"; expected "_PathLike[Any]" [arg-type] | |
rasa/core/tracker_store.py:110: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "None") [assignment] | |
rasa/core/tracker_store.py:166: error: Item "None" of "Optional[EventBroker]" has no attribute "publish" [union-attr] | |
rasa/core/tracker_store.py:210: error: Argument 2 to "_deserialise_dialogue_from_pickle" of "TrackerStore" has incompatible type "Union[str, bytes]"; expected "bytes" [arg-type] | |
rasa/core/tracker_store.py:224: error: Need type annotation for 'store' (hint: "store: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/tracker_store.py:332: error: Argument 2 to "__init__" of "TrackerStore" has incompatible type "Optional[EndpointConfig]"; expected "Optional[EventBroker]" [arg-type] | |
rasa/core/tracker_store.py:367: error: Return type "Dict[Any, Any]" of "serialise_tracker" incompatible with return type "str" in supertype "TrackerStore" [override] | |
rasa/core/tracker_store.py:398: error: Item "None" of "Optional[Domain]" has no attribute "slots" [union-attr] | |
rasa/core/tracker_store.py:550: error: Return value expected [return-value] | |
rasa/core/tracker_store.py:556: error: Item "None" of "Optional[Domain]" has no attribute "slots" [union-attr] | |
rasa/core/tracker_store.py:620: error: Incompatible types in assignment (expression has type "int", target has type "Dict[str, str]") [assignment] | |
rasa/core/tracker_store.py:623: error: Incompatible types in assignment (expression has type "int", target has type "Dict[str, str]") [assignment] | |
rasa/core/tracker_store.py:627: error: Incompatible return value type (got "Dict[str, Dict[str, str]]", expected "Dict[str, Union[str, int]]") [return-value] | |
rasa/core/tracker_store.py:663: error: Variable "rasa.core.tracker_store.SQLTrackerStore.Base" is not valid as a type [valid-type] | |
rasa/core/tracker_store.py:663: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases | |
rasa/core/tracker_store.py:663: error: Invalid base class "Base" [misc] | |
rasa/core/tracker_store.py:972: error: Signature of "domain" incompatible with supertype "TrackerStore" [override] | |
rasa/core/tracker_store.py:973: error: Signature of "domain" incompatible with supertype "TrackerStore" [override] | |
rasa/core/tracker_store.py:987: error: Argument 1 to "InMemoryTrackerStore" has incompatible type "Optional[Domain]"; expected "Domain" [arg-type] | |
rasa/core/tracker_store.py:1038: error: Incompatible types in assignment (expression has type "RedisTrackerStore", variable has type "InMemoryTrackerStore") [assignment] | |
rasa/core/tracker_store.py:1045: error: Incompatible types in assignment (expression has type "MongoTrackerStore", variable has type "InMemoryTrackerStore") [assignment] | |
rasa/core/tracker_store.py:1052: error: Incompatible types in assignment (expression has type "SQLTrackerStore", variable has type "InMemoryTrackerStore") [assignment] | |
rasa/core/tracker_store.py:1059: error: Incompatible types in assignment (expression has type "DynamoTrackerStore", variable has type "InMemoryTrackerStore") [assignment] | |
rasa/core/tracker_store.py:1060: error: Argument "event_broker" to "DynamoTrackerStore" has incompatible type "Optional[EventBroker]"; expected "Optional[EndpointConfig]" [arg-type] | |
rasa/core/tracker_store.py:1063: error: Incompatible types in assignment (expression has type "TrackerStore", variable has type "InMemoryTrackerStore") [assignment] | |
rasa/core/test.py:113: error: Argument 1 to "generate_entity" of "TrainingDataWriter" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/test.py:121: error: Argument 1 to "generate_entity" of "TrainingDataWriter" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/test.py:268: error: Argument 1 to "_clean_entity_results" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/test.py:268: error: Argument 2 to "_clean_entity_results" has incompatible type "Optional[Any]"; expected "List[Dict[str, Any]]" [arg-type] | |
rasa/core/test.py:269: error: Argument 1 to "_clean_entity_results" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/test.py:269: error: Argument 2 to "_clean_entity_results" has incompatible type "Optional[Any]"; expected "List[Dict[str, Any]]" [arg-type] | |
rasa/core/test.py:293: error: Incompatible types in assignment (expression has type "Union[str, bool, Dict[Any, Any], None]", variable has type "str") [assignment] | |
rasa/core/test.py:351: error: Unsupported right operand type for in ("Optional[str]") [operator] | |
rasa/core/test.py:508: error: Argument 3 to "_log_evaluation_table" has incompatible type "Union[str, Dict[str, Dict[str, float]]]"; expected "Dict[str, Any]" [arg-type] | |
rasa/core/test.py:608: error: Argument 3 to "_log_evaluation_table" has incompatible type "Union[str, Dict[str, Dict[str, float]]]"; expected "Dict[str, Any]" [arg-type] | |
rasa/core/test.py:625: error: Argument 3 to "_log_stories" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/test.py:629: error: Argument 3 to "_log_stories" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/featurizers.py:160: error: Need type annotation for 'user_labels' (hint: "user_labels: List[<type>] = ...") [var-annotated] | |
rasa/core/featurizers.py:161: error: Need type annotation for 'slot_labels' (hint: "slot_labels: List[<type>] = ...") [var-annotated] | |
rasa/core/featurizers.py:162: error: Need type annotation for 'bot_labels' (hint: "bot_labels: List[<type>] = ...") [var-annotated] | |
rasa/core/featurizers.py:188: error: Incompatible types in assignment (expression has type "Dict[str, int]", variable has type "None") [assignment] | |
rasa/core/featurizers.py:193: error: Incompatible types in assignment (expression has type "Dict[str, int]", variable has type "None") [assignment] | |
rasa/core/featurizers.py:196: error: Incompatible types in assignment (expression has type "Dict[str, int]", variable has type "None") [assignment] | |
rasa/core/featurizers.py:201: error: Argument 1 to "len" has incompatible type "None"; expected "Sized" [arg-type] | |
rasa/core/featurizers.py:201: error: Incompatible types in assignment (expression has type "int", variable has type "None") [assignment] | |
rasa/core/featurizers.py:254: error: Argument 1 to "len" has incompatible type "None"; expected "Sized" [arg-type] | |
rasa/core/featurizers.py:258: error: Value of type "None" is not indexable [index] | |
rasa/core/featurizers.py:343: error: Item "None" of "Optional[SingleStateFeaturizer]" has no attribute "encode" [union-attr] | |
rasa/core/featurizers.py:366: error: Item "None" of "Optional[SingleStateFeaturizer]" has no attribute "action_as_one_hot" [union-attr] | |
rasa/core/featurizers.py:480: error: Unsupported operand types for < ("int" and "None") [operator] | |
rasa/core/featurizers.py:481: error: Unsupported operand types for - ("None" and "int") [operator] | |
rasa/core/featurizers.py:531: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "None") [assignment] | |
rasa/core/featurizers.py:579: error: Incompatible return value type (got "List[Dict[str, float]]", expected "List[Optional[Dict[str, float]]]") [return-value] | |
rasa/core/featurizers.py:579: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/featurizers.py:579: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/featurizers.py:579: note: Perhaps you need a type annotation for "states"? Suggestion: "List[Optional[Dict[str, float]]]" | |
rasa/core/featurizers.py:585: error: Unsupported operand types for + ("List[None]" and "List[Dict[str, float]]") [operator] | |
rasa/core/featurizers.py:586: error: Incompatible return value type (got "List[None]", expected "List[Optional[Dict[str, float]]]") [return-value] | |
rasa/core/featurizers.py:586: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/featurizers.py:586: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/featurizers.py:586: note: Perhaps you need a type annotation for "state_features"? Suggestion: "List[Optional[Dict[str, float]]]" | |
rasa/core/featurizers.py:596: error: Return type "Tuple[List[List[Optional[Dict[str, float]]]], List[List[str]]]" of "training_states_and_actions" incompatible with return type "Tuple[List[List[Dict[Any, Any]]], List[List[str]]]" in supertype "TrackerFeaturizer" [override] | |
rasa/core/featurizers.py:663: error: List comprehension has incompatible type List[List[Optional[Dict[str, float]]]]; expected List[List[Dict[str, float]]] [misc] | |
rasa/core/training/generator.py:95: error: Incompatible types in assignment (expression has type "deque[Any]", variable has type "None") [assignment] | |
rasa/core/training/generator.py:97: error: Incompatible return value type (got "None", expected "deque[Any]") [return-value] | |
rasa/core/training/generator.py:107: error: Argument 2 to "TrackerWithCachedStates" has incompatible type "ValuesView[Slot]"; expected "Optional[List[Slot]]" [arg-type] | |
rasa/core/training/generator.py:138: error: Incompatible types in assignment (expression has type "deque[Any]", variable has type "None") [assignment] | |
rasa/core/training/generator.py:138: error: Argument 1 to "past_states" of "TrackerWithCachedStates" has incompatible type "Optional[Domain]"; expected "Domain" [arg-type] | |
rasa/core/training/generator.py:143: error: Argument 2 of "update" is incompatible with supertype "DialogueStateTracker"; supertype defines the argument type as "Optional[Domain]" [override] | |
rasa/core/training/generator.py:143: note: This violates the Liskov substitution principle | |
rasa/core/training/generator.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/core/training/generator.py:152: error: Incompatible types in assignment (expression has type "deque[Any]", variable has type "None") [assignment] | |
rasa/core/training/generator.py:152: error: Argument 1 to "past_states" of "TrackerWithCachedStates" has incompatible type "Optional[Domain]"; expected "Domain" [arg-type] | |
rasa/core/training/generator.py:160: error: "None" has no attribute "pop" [attr-defined] | |
rasa/core/training/generator.py:161: error: "None" has no attribute "pop" [attr-defined] | |
rasa/core/training/generator.py:167: error: "None" has no attribute "pop" [attr-defined] | |
rasa/core/training/generator.py:216: error: Need type annotation for 'hashed_featurizations' (hint: "hashed_featurizations: Set[<type>] = ...") [var-annotated] | |
rasa/core/training/generator.py:280: error: Need type annotation for 'previous_unused' (hint: "previous_unused: Set[<type>] = ...") [var-annotated] | |
rasa/core/training/generator.py:291: error: Argument 1 to "_count_trackers" of "TrainingDataGenerator" has incompatible type "defaultdict[str, List[TrackerWithCachedStates]]"; expected "Dict[Optional[str], List[TrackerWithCachedStates]]" [arg-type] | |
rasa/core/training/generator.py:384: error: Incompatible types in assignment (expression has type "Dict[Optional[str], List[TrackerWithCachedStates]]", variable has type "defaultdict[str, List[TrackerWithCachedStates]]") [assignment] | |
rasa/core/training/generator.py:385: error: Argument 1 to "_filter_active_trackers" of "TrainingDataGenerator" has incompatible type "defaultdict[str, List[TrackerWithCachedStates]]"; expected "Dict[Optional[str], List[TrackerWithCachedStates]]" [arg-type] | |
rasa/core/training/generator.py:387: error: Argument 1 to "_count_trackers" of "TrainingDataGenerator" has incompatible type "defaultdict[str, List[TrackerWithCachedStates]]"; expected "Dict[Optional[str], List[TrackerWithCachedStates]]" [arg-type] | |
rasa/core/training/generator.py:424: error: Name 'used_checkpoints' already defined on line 279 [no-redef] | |
rasa/core/training/generator.py:427: error: Incompatible types in assignment (expression has type "Dict[Optional[str], List[TrackerWithCachedStates]]", variable has type "defaultdict[str, List[TrackerWithCachedStates]]") [assignment] | |
rasa/core/training/generator.py:514: error: Incompatible return value type (got "defaultdict[str, List[TrackerWithCachedStates]]", expected "Dict[Optional[str], List[TrackerWithCachedStates]]") [return-value] | |
rasa/core/training/generator.py:552: error: Incompatible return value type (got "defaultdict[str, List[Any]]", expected "Dict[Optional[str], List[TrackerWithCachedStates]]") [return-value] | |
rasa/core/training/generator.py:579: error: Unsupported operand types for + ("str" and "None") [operator] | |
rasa/core/training/generator.py:579: note: Right operand is of type "Optional[str]" | |
rasa/core/training/generator.py:583: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] | |
rasa/core/training/generator.py:584: error: Argument 2 to "copy" of "TrackerWithCachedStates" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/generator.py:601: error: Argument 1 to "update" of "TrackerWithCachedStates" has incompatible type "Union[Event, List[Event]]"; expected "Event" [arg-type] | |
rasa/core/training/dsl.py:22: error: Return type "Optional[Message]" of "_parse_item" incompatible with return type "None" in supertype "MarkdownReader" [override] | |
rasa/core/training/dsl.py:47: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/core/training/story_reader/story_step_builder.py:23: error: Need type annotation for 'story_steps' (hint: "story_steps: List[<type>] = ...") [var-annotated] | |
rasa/core/training/story_reader/story_step_builder.py:24: error: Need type annotation for 'current_steps' (hint: "current_steps: List[<type>] = ...") [var-annotated] | |
rasa/core/training/story_reader/story_step_builder.py:25: error: Need type annotation for 'start_checkpoints' (hint: "start_checkpoints: List[<type>] = ...") [var-annotated] | |
rasa/core/nlg/generator.py:62: error: Incompatible types in assignment (expression has type "CallbackNaturalLanguageGenerator", variable has type "TemplatedNaturalLanguageGenerator") [assignment] | |
rasa/core/nlg/generator.py:70: error: Incompatible types in assignment (expression has type "NaturalLanguageGenerator", variable has type "TemplatedNaturalLanguageGenerator") [assignment] | |
rasa/core/channels/console.py:27: error: Missing return statement [return] | |
rasa/core/channels/console.py:44: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/channels/console.py:48: error: Missing return statement [return] | |
rasa/core/channels/console.py:62: error: Unsupported operand types for + ("str" and "None") [operator] | |
rasa/core/channels/console.py:62: note: Right operand is of type "Optional[Any]" | |
rasa/core/channels/console.py:65: error: Unsupported operand types for + ("str" and "None") [operator] | |
rasa/core/channels/console.py:65: note: Right operand is of type "Optional[Any]" | |
rasa/core/channels/console.py:69: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/channels/console.py:76: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/channels/console.py:93: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] | |
rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py:59: error: Return statement in function which does not return [misc] | |
rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py:157: error: Need type annotation for 'signature' [var-annotated] | |
rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py:161: error: Need type annotation for 'signature' [var-annotated] | |
rasa/nlu/extractors/regex_entity_extractor.py:90: error: Incompatible types in assignment (expression has type "List[Match[str]]", variable has type "Iterator[Match[str]]") [assignment] | |
rasa/nlu/extractors/regex_entity_extractor.py:90: note: 'list' is missing following 'Iterator' protocol member: | |
rasa/nlu/extractors/regex_entity_extractor.py:90: note: __next__ | |
rasa/nlu/extractors/regex_entity_extractor.py:107: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/extractors/regex_entity_extractor.py:107: note: This violates the Liskov substitution principle | |
rasa/nlu/extractors/regex_entity_extractor.py:107: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/extractors/regex_entity_extractor.py:117: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/extractors/regex_entity_extractor.py:117: error: Argument 2 to "join" has incompatible type "Optional[Any]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/extractors/mitie_entity_extractor.py:144: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/extractors/mitie_entity_extractor.py:144: note: This violates the Liskov substitution principle | |
rasa/nlu/extractors/mitie_entity_extractor.py:144: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/extractors/mitie_entity_extractor.py:159: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/extractors/entity_synonyms.py:65: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/extractors/entity_synonyms.py:65: note: This violates the Liskov substitution principle | |
rasa/nlu/extractors/entity_synonyms.py:65: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/extractors/entity_synonyms.py:79: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/extractors/duckling_http_extractor.py:126: error: Argument 1 to "concat_url" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/extractors/duckling_http_extractor.py:200: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/extractors/duckling_http_extractor.py:200: note: This violates the Liskov substitution principle | |
rasa/nlu/extractors/duckling_http_extractor.py:200: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/classifiers/mitie_intent_classifier.py:90: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/classifiers/mitie_intent_classifier.py:90: note: This violates the Liskov substitution principle | |
rasa/nlu/classifiers/mitie_intent_classifier.py:90: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/classifiers/mitie_intent_classifier.py:104: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/classifiers/diet_classifier.py:585: error: Argument 1 to "_check_labels_features_exist" of "DIETClassifier" has incompatible type "List[Optional[Message]]"; expected "List[Message]" [arg-type] | |
rasa/nlu/classifiers/diet_classifier.py:589: error: Argument 1 to "_extract_labels_precomputed_features" of "DIETClassifier" has incompatible type "List[Optional[Message]]"; expected "List[Message]" [arg-type] | |
rasa/nlu/classifiers/diet_classifier.py:591: error: Incompatible types in assignment (expression has type "None", variable has type "List[Any]") [assignment] | |
rasa/nlu/classifiers/diet_classifier.py:592: error: Argument 1 to "_compute_default_label_features" of "DIETClassifier" has incompatible type "List[Optional[Message]]"; expected "List[Message]" [arg-type] | |
rasa/nlu/classifiers/diet_classifier.py:615: error: Item "None" of "Optional[RasaModelData]" has no attribute "get" [union-attr] | |
rasa/nlu/classifiers/diet_classifier.py:662: error: Argument 2 to "_extract_features" of "DIETClassifier" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/nlu/classifiers/diet_classifier.py:677: error: Item "None" of "Optional[List[EntityTagSpec]]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/nlu/classifiers/diet_classifier.py:691: error: Incompatible types in assignment (expression has type "Dict[Union[str, Any], Any]", variable has type "defaultdict[Union[str, Any], List[Any]]") [assignment] | |
rasa/nlu/classifiers/diet_classifier.py:859: error: Need type annotation for 'label_ranking' (hint: "label_ranking: List[<type>] = ...") [var-annotated] | |
rasa/nlu/classifiers/diet_classifier.py:884: error: Value of type "Optional[Dict[int, str]]" is not indexable [index] | |
rasa/nlu/classifiers/diet_classifier.py:885: error: Dict entry 1 has incompatible type "str": "Union[str, Any]"; expected "str": "Optional[float]" [dict-item] | |
rasa/nlu/classifiers/diet_classifier.py:885: error: Value of type "Optional[Dict[int, str]]" is not indexable [index] | |
rasa/nlu/classifiers/diet_classifier.py:901: error: Value of type "Optional[Dict[int, str]]" is not indexable [index] | |
rasa/nlu/classifiers/diet_classifier.py:902: error: Value of type "Optional[Dict[int, str]]" is not indexable [index] | |
rasa/nlu/classifiers/diet_classifier.py:936: error: Item "None" of "Optional[List[EntityTagSpec]]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/nlu/classifiers/diet_classifier.py:975: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] | |
rasa/nlu/classifiers/diet_classifier.py:976: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:983: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:986: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:989: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:999: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1005: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/classifiers/diet_classifier.py:1005: note: This violates the Liskov substitution principle | |
rasa/nlu/classifiers/diet_classifier.py:1005: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/classifiers/diet_classifier.py:1017: error: Value of type variable "AnyStr" of "abspath" cannot be "Optional[str]" [type-var] | |
rasa/nlu/classifiers/diet_classifier.py:1048: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] | |
rasa/nlu/classifiers/diet_classifier.py:1050: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1051: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1053: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1056: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1095: error: Unsupported left operand type for + ("None") [operator] | |
rasa/nlu/classifiers/diet_classifier.py:1095: note: Left operand is of type "Optional[Any]" | |
rasa/nlu/classifiers/diet_classifier.py:1330: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int") [assignment] | |
rasa/nlu/classifiers/diet_classifier.py:2007: error: Value of type "None" is not indexable [index] | |
rasa/importers/rasa.py:32: error: Argument 1 to "get_configuration" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/importers/rasa.py:55: error: Argument 2 to "training_data_from_paths" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/importers/rasa.py:60: error: Argument 1 to "load" of "Domain" has incompatible type "Optional[str]"; expected "Union[List[str], str]" [arg-type] | |
rasa/importers/multi_project.py:33: error: Need type annotation for '_e2e_story_paths' (hint: "_e2e_story_paths: List[<type>] = ...") [var-annotated] | |
rasa/importers/multi_project.py:35: error: Need type annotation for '_imports' (hint: "_imports: List[<type>] = ...") [var-annotated] | |
rasa/importers/multi_project.py:196: error: Argument 2 to "training_data_from_paths" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/visualization.py:89: error: Need type annotation for 'candidates' [var-annotated] | |
rasa/core/training/visualization.py:257: error: Incompatible types in assignment (expression has type "None", variable has type "UserMessageGenerator") [assignment] | |
rasa/core/training/visualization.py:321: error: "Event" has no attribute "action_name" [attr-defined] | |
rasa/core/training/visualization.py:424: error: Argument 1 to "parse" of "NaturalLanguageInterpreter" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/visualization.py:452: error: "Event" has no attribute "action_name" [attr-defined] | |
rasa/core/training/visualization.py:567: error: Argument 2 to "visualize_neighborhood" has incompatible type "List[deque[Event]]"; expected "List[List[Event]]" [arg-type] | |
rasa/core/training/story_conflict.py:36: error: Need type annotation for '_conflicting_actions' [var-annotated] | |
rasa/core/training/story_conflict.py:197: error: Need type annotation for 'state_action_mapping' [var-annotated] | |
rasa/core/training/story_conflict.py:238: error: Argument 1 to "StoryConflict" has incompatible type "List[Dict[str, float]]"; expected "List[Optional[Dict[str, float]]]" [arg-type] | |
rasa/core/training/story_conflict.py:238: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/story_conflict.py:238: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/training/story_conflict.py:241: error: Argument "action" to "add_conflicting_action" of "StoryConflict" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_conflict.py:272: error: Incompatible types in assignment (expression has type "List[Dict[Any, Any]]", variable has type "deque[Any]") [assignment] | |
rasa/core/training/story_conflict.py:278: error: Argument 1 to "slice_state_history" of "MaxHistoryTrackerFeaturizer" has incompatible type "MutableSequence[Any]"; expected "List[Dict[str, float]]" [arg-type] | |
rasa/core/training/story_conflict.py:280: error: Argument 3 to "TrackerEventStateTuple" has incompatible type "List[Optional[Dict[str, float]]]"; expected "List[Dict[str, float]]" [arg-type] | |
rasa/core/training/story_reader/story_reader.py:41: error: Need type annotation for 'story_steps' (hint: "story_steps: List[<type>] = ...") [var-annotated] | |
rasa/core/policies/policy.py:240: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/nlg/template.py:105: error: Argument 1 to "_template_variables" of "TemplatedNaturalLanguageGenerator" has incompatible type "Optional[Dict[str, Any]]"; expected "Dict[str, Any]" [arg-type] | |
rasa/core/nlg/callback.py:103: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/validator.py:113: error: Item "Event" of "Union[Event, List[Event]]" has no attribute "intent" [union-attr] | |
rasa/validator.py:113: error: Item "List[Event]" of "Union[Event, List[Event]]" has no attribute "intent" [union-attr] | |
rasa/nlu/selectors/response_selector.py:351: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/nlu/selectors/response_selector.py:355: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/nlu/selectors/response_selector.py:386: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] | |
rasa/nlu/selectors/response_selector.py:389: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/selectors/response_selector.py:396: error: Argument 4 of "load" is incompatible with supertype "DIETClassifier"; supertype defines the argument type as "Optional[DIETClassifier]" [override] | |
rasa/nlu/selectors/response_selector.py:396: note: This violates the Liskov substitution principle | |
rasa/nlu/selectors/response_selector.py:396: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/selectors/response_selector.py:396: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/selectors/response_selector.py:410: error: Incompatible return value type (got "DIETClassifier", expected "ResponseSelector") [return-value] | |
rasa/nlu/selectors/response_selector.py:413: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]") [assignment] | |
rasa/nlu/selectors/response_selector.py:413: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/selectors/response_selector.py:416: error: Unsupported left operand type for / ("str") [operator] | |
rasa/nlu/selectors/response_selector.py:416: error: Unsupported left operand type for / ("None") [operator] | |
rasa/nlu/selectors/response_selector.py:416: note: Left operand is of type "Optional[str]" | |
rasa/nlu/selectors/response_selector.py:419: error: "DIETClassifier" has no attribute "retrieval_intent_mapping" [attr-defined] | |
rasa/nlu/selectors/response_selector.py:420: error: "DIETClassifier" has no attribute "collected_responses" [attr-defined] | |
rasa/nlu/selectors/response_selector.py:422: error: Incompatible return value type (got "DIETClassifier", expected "ResponseSelector") [return-value] | |
rasa/nlu/selectors/response_selector.py:621: error: Value of type "None" is not indexable [index] | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:160: error: Incompatible types in assignment (expression has type "OrderedDict[str, Set[Any]]", variable has type "defaultdict[str, Set[Any]]") [assignment] | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:162: error: Incompatible return value type (got "defaultdict[str, Set[Any]]", expected "Dict[str, List[str]]") [return-value] | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:277: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:277: note: This violates the Liskov substitution principle | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:277: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py:288: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/nlu/extractors/crf_entity_extractor.py:210: error: Need type annotation for 'predictions' (hint: "predictions: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/nlu/extractors/crf_entity_extractor.py:296: error: Argument 4 of "load" is incompatible with supertype "Component"; supertype defines the argument type as "Optional[Component]" [override] | |
rasa/nlu/extractors/crf_entity_extractor.py:296: note: This violates the Liskov substitution principle | |
rasa/nlu/extractors/crf_entity_extractor.py:296: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides | |
rasa/nlu/extractors/crf_entity_extractor.py:311: error: Value of type variable "AnyStr" of "abspath" cannot be "Optional[str]" [type-var] | |
rasa/nlu/extractors/crf_entity_extractor.py:318: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/core/training/story_reader/yaml_story_reader.py:75: error: Incompatible types in assignment (expression has type "Union[str, Path]", variable has type "Optional[str]") [assignment] | |
rasa/core/training/story_reader/yaml_story_reader.py:105: error: Argument 2 to "validate_training_data_format_version" of "Validator" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_reader/yaml_story_reader.py:115: error: Argument 1 to "parse_data" of "YAMLStoryReader" has incompatible type "Union[Dict[Any, Any], List[Any]]"; expected "List[Dict[str, Any]]" [arg-type] | |
rasa/core/training/story_reader/yaml_story_reader.py:255: error: Item "None" of "Optional[StoryStepBuilder]" has no attribute "add_user_messages" [union-attr] | |
rasa/core/training/story_reader/yaml_story_reader.py:277: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/core/training/story_reader/yaml_story_reader.py:292: error: Item "None" of "Optional[StoryStepBuilder]" has no attribute "add_user_messages" [union-attr] | |
rasa/core/training/story_reader/yaml_story_reader.py:401: error: Argument 2 to "_new_story_part" of "StoryReader" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_reader/yaml_story_reader.py:417: error: Argument 2 to "_new_rule_part" of "StoryReader" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_reader/markdown_story_reader.py:68: error: Argument 2 to "_new_rule_part" of "StoryReader" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_reader/markdown_story_reader.py:72: error: Argument 2 to "_new_story_part" of "StoryReader" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/story_reader/markdown_story_reader.py:103: error: Argument "exc_info" to "error" of "Logger" has incompatible type "int"; expected "Union[None, bool, Union[Tuple[type, BaseException, Optional[TracebackType]], Tuple[None, None, None]], BaseException]" [arg-type] | |
rasa/core/training/story_reader/markdown_story_reader.py:200: error: Item "None" of "Optional[Message]" has no attribute "text" [union-attr] | |
rasa/core/training/story_reader/markdown_story_reader.py:202: error: Item "None" of "Optional[Message]" has no attribute "data" [union-attr] | |
rasa/core/training/story_reader/markdown_story_reader.py:203: error: Item "None" of "Optional[Message]" has no attribute "data" [union-attr] | |
rasa/core/policies/memoization.py:103: error: Need type annotation for 'lookup' (hint: "lookup: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/policies/memoization.py:165: error: "DialogueStateTracker" has no attribute "is_augmented" [attr-defined] | |
rasa/core/policies/memoization.py:197: error: "None" has no attribute "intent" [attr-defined] | |
rasa/core/policies/memoization.py:201: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/mapping_policy.py:47: error: Return type "None" of "_standard_featurizer" incompatible with return type "MaxHistoryTrackerFeaturizer" in supertype "Policy" [override] | |
rasa/core/policies/mapping_policy.py:112: error: "None" has no attribute "intent" [attr-defined] | |
rasa/core/policies/mapping_policy.py:120: error: Incompatible types in assignment (expression has type "Union[bool, List[Any], None]", variable has type "str") [assignment] | |
rasa/core/policies/mapping_policy.py:145: error: Item "Event" of "Optional[Event]" has no attribute "action_name" [union-attr] | |
rasa/core/policies/mapping_policy.py:145: error: Item "None" of "Optional[Event]" has no attribute "action_name" [union-attr] | |
rasa/core/policies/mapping_policy.py:146: error: Item "Event" of "Optional[Event]" has no attribute "policy" [union-attr] | |
rasa/core/policies/mapping_policy.py:146: error: Item "None" of "Optional[Event]" has no attribute "policy" [union-attr] | |
rasa/core/policies/mapping_policy.py:158: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/mapping_policy.py:164: error: Item "Event" of "Optional[Event]" has no attribute "policy" [union-attr] | |
rasa/core/policies/mapping_policy.py:164: error: Item "None" of "Optional[Event]" has no attribute "policy" [union-attr] | |
rasa/core/policies/mapping_policy.py:170: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/fallback.py:29: error: Return type "None" of "_standard_featurizer" incompatible with return type "MaxHistoryTrackerFeaturizer" in supertype "Policy" [override] | |
rasa/core/policies/fallback.py:143: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/fallback.py:159: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/policies/fallback.py:172: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/fallback.py:174: error: Argument 2 to "should_nlu_fallback" of "FallbackPolicy" has incompatible type "None"; expected "str" [arg-type] | |
rasa/nlu/registry.py:129: error: Incompatible return value type (got "ComponentMetaclass", expected "Type[Component]") [return-value] | |
rasa/core/training/loading.py:88: error: Argument 1 to "list_files" has incompatible type "Union[str, Path]"; expected "str" [arg-type] | |
rasa/core/policies/two_stage_fallback.py:124: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/policies/two_stage_fallback.py:127: error: Argument 2 to "should_nlu_fallback" of "FallbackPolicy" has incompatible type "None"; expected "str" [arg-type] | |
rasa/core/policies/two_stage_fallback.py:189: error: Item "None" of "Optional[Event]" has no attribute "timestamp" [union-attr] | |
rasa/core/policies/two_stage_fallback.py:190: error: Item "None" of "Optional[Event]" has no attribute "timestamp" [union-attr] | |
rasa/core/policies/rule_policy.py:89: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment] | |
rasa/core/policies/rule_policy.py:174: error: Value expression in dictionary comprehension has incompatible type "float"; expected type "int" [misc] | |
rasa/core/policies/rule_policy.py:181: error: List item 1 has incompatible type "Dict[str, int]"; expected "Optional[Dict[str, float]]" [list-item] | |
rasa/core/policies/rule_policy.py:183: error: List item 0 has incompatible type "Dict[str, int]"; expected "Optional[Dict[str, float]]" [list-item] | |
rasa/core/policies/rule_policy.py:235: error: Incompatible types in assignment (expression has type "List[Optional[Dict[str, float]]]", variable has type "List[Dict[Any, Any]]") [assignment] | |
rasa/core/policies/rule_policy.py:271: error: "DialogueStateTracker" has no attribute "is_augmented" [attr-defined] | |
rasa/core/policies/rule_policy.py:389: error: Missing return statement [return] | |
rasa/core/policies/rule_policy.py:512: error: Signature of "_default_predictions" incompatible with supertype "Policy" [override] | |
rasa/core/policies/rule_policy.py:517: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/form_policy.py:92: error: Incompatible types in assignment (expression has type "List[Optional[Dict[str, float]]]", variable has type "List[Dict[Any, Any]]") [assignment] | |
rasa/core/policies/form_policy.py:107: error: Argument 1 to "_recall_states" of "MemoizationPolicy" has incompatible type "List[Optional[Dict[str, float]]]"; expected "List[Dict[str, float]]" [arg-type] | |
rasa/core/policies/form_policy.py:155: error: Argument 1 to "_prediction_result" of "MemoizationPolicy" has incompatible type "Union[str, bool, Dict[Any, Any], None]"; expected "str" [arg-type] | |
rasa/core/actions/two_stage_fallback.py:123: error: Unsupported operand types for + ("List[Event]" and "List[UserUtteranceReverted]") [operator] | |
rasa/core/actions/two_stage_fallback.py:132: error: Incompatible return value type (got "List[UserUtteranceReverted]", expected "List[Event]") [return-value] | |
rasa/core/actions/two_stage_fallback.py:132: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/two_stage_fallback.py:132: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/two_stage_fallback.py:132: note: Perhaps you need a type annotation for "revert_events"? Suggestion: "List[Event]" | |
rasa/core/actions/two_stage_fallback.py:174: error: Incompatible return value type (got "List[Optional[Any]]", expected "List[str]") [return-value] | |
rasa/core/actions/two_stage_fallback.py:199: error: "None" has no attribute "parse_data" [attr-defined] | |
rasa/core/actions/two_stage_fallback.py:200: error: "None" has no attribute "timestamp" [attr-defined] | |
rasa/core/actions/two_stage_fallback.py:201: error: List item 1 has incompatible type "None"; expected "Event" [list-item] | |
rasa/core/actions/forms.py:116: error: "None" has no attribute "intent" [attr-defined] | |
rasa/core/actions/forms.py:154: error: Argument 1 to "get_entity_value" of "FormAction" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/actions/forms.py:186: error: Incompatible types in assignment (expression has type "None", variable has type "List[str]") [assignment] | |
rasa/core/actions/forms.py:188: error: Incompatible types in assignment (expression has type "str", variable has type "List[str]") [assignment] | |
rasa/core/actions/forms.py:201: error: Argument 1 to "_get_entity_type_of_slot_to_fill" of "FormAction" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/actions/forms.py:261: error: Argument 1 to "get_mappings_for_slot" of "FormAction" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/actions/forms.py:271: error: Argument 1 to "get_entity_value" of "FormAction" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/actions/forms.py:282: error: "None" has no attribute "text" [attr-defined] | |
rasa/core/actions/forms.py:291: error: Dict entry 0 has incompatible type "Optional[Any]": "Any"; expected "str": "Any" [dict-item] | |
rasa/core/actions/forms.py:328: error: Incompatible return value type (got "List[SlotSet]", expected "List[Event]") [return-value] | |
rasa/core/actions/forms.py:328: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/forms.py:328: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/forms.py:328: note: Perhaps you need a type annotation for "events"? Suggestion: "List[Event]" | |
rasa/core/actions/forms.py:330: error: Argument 2 to "_temporary_tracker" of "FormAction" has incompatible type "List[SlotSet]"; expected "List[Event]" [arg-type] | |
rasa/core/actions/forms.py:330: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/forms.py:330: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/forms.py:426: error: Incompatible return value type (got "List[SlotSet]", expected "List[Event]") [return-value] | |
rasa/core/actions/forms.py:426: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/actions/forms.py:426: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/actions/forms.py:426: error: Unsupported operand types for + ("List[SlotSet]" and "List[Event]") [operator] | |
rasa/core/policies/ensemble.py:101: error: "type" has no attribute "validate_against_domain" [attr-defined] | |
rasa/core/policies/ensemble.py:103: error: Argument 1 to "_check_policy_for_forms_available" has incompatible type "Optional[Domain]"; expected "Domain" [arg-type] | |
rasa/core/policies/ensemble.py:204: error: Incompatible types in assignment (expression has type "Optional[Dict[Any, Dict[str, List[Any]]]]", variable has type "Dict[Any, Any]") [assignment] | |
rasa/core/policies/ensemble.py:208: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] | |
rasa/core/policies/ensemble.py:227: error: Argument 1 to "append" of "list" has incompatible type "None"; expected "int" [arg-type] | |
rasa/core/policies/ensemble.py:228: error: Incompatible return value type (got "List[int]", expected "List[Optional[int]]") [return-value] | |
rasa/core/policies/ensemble.py:228: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/policies/ensemble.py:228: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/policies/ensemble.py:228: note: Perhaps you need a type annotation for "max_histories"? Suggestion: "List[Optional[int]]" | |
rasa/core/policies/ensemble.py:253: error: Module has no attribute "__version__" [attr-defined] | |
rasa/core/policies/ensemble.py:531: error: Incompatible types in assignment (expression has type "Tuple[float, int]", variable has type "Tuple[int, int]") [assignment] | |
rasa/core/policies/ensemble.py:535: error: Argument 1 to "_is_not_mapping_policy" of "SimplePolicyEnsemble" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/policies/ensemble.py:541: error: Invalid index type "Optional[str]" for "Dict[str, Prediction]"; expected type "str" [index] | |
rasa/core/policies/ensemble.py:584: error: Invalid index type "Optional[int]" for "List[float]"; expected type "int" [index] | |
rasa/core/policies/ensemble.py:688: error: Argument 1 to "is_not_memo_policy" of "SimplePolicyEnsemble" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/policies/ensemble.py:691: error: Argument 3 to "_fallback_after_listen" of "SimplePolicyEnsemble" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/processor.py:130: error: Argument 2 to "zip" has incompatible type "Optional[List[float]]"; expected "Iterable[float]" [arg-type] | |
rasa/core/processor.py:193: error: Argument 2 to "_update_tracker_session" of "MessageProcessor" has incompatible type "Optional[OutputChannel]"; expected "OutputChannel" [arg-type] | |
rasa/core/processor.py:293: error: Value of type "Optional[List[float]]" is not indexable [index] | |
rasa/core/processor.py:293: error: Item "None" of "Optional[Action]" has no attribute "name" [union-attr] | |
rasa/core/processor.py:297: error: Incompatible return value type (got "Tuple[Optional[Action], Optional[str], Union[float, Any]]", expected "Tuple[Action, str, float]") [return-value] | |
rasa/core/processor.py:297: error: Value of type "Optional[List[float]]" is not indexable [index] | |
rasa/core/processor.py:354: error: Need type annotation for 'entities' [var-annotated] | |
rasa/core/processor.py:503: error: "None" has no attribute "intent" [attr-defined] | |
rasa/core/processor.py:742: error: Incompatible types in assignment (expression has type "Optional[Event]", variable has type "Optional[UserUttered]") [assignment] | |
rasa/core/agent.py:152: error: Argument 1 to "is_url" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/agent.py:183: error: Argument 2 to "request" of "ClientSession" has incompatible type "Optional[str]"; expected "Union[str, URL]" [arg-type] | |
rasa/core/agent.py:288: error: Argument 2 to "load_from_remote_storage" of "Agent" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/agent.py:385: error: "NaturalLanguageGenerator" has no attribute "templates" [attr-defined] | |
rasa/core/agent.py:538: error: Incompatible return value type (got "Optional[DialogueStateTracker]", expected "DialogueStateTracker") [return-value] | |
rasa/core/agent.py:551: error: Incompatible return value type (got "Optional[DialogueStateTracker]", expected "DialogueStateTracker") [return-value] | |
rasa/core/agent.py:622: error: "Policy" has no attribute "toggle" [attr-defined] | |
rasa/core/agent.py:629: error: Item "None" of "Optional[PolicyEnsemble]" has no attribute "policies" [union-attr] | |
rasa/core/agent.py:647: error: Item "None" of "Optional[PolicyEnsemble]" has no attribute "policies" [union-attr] | |
rasa/core/agent.py:744: error: Item "None" of "Optional[PolicyEnsemble]" has no attribute "train" [union-attr] | |
rasa/core/agent.py:794: error: Item "None" of "Optional[PolicyEnsemble]" has no attribute "persist" [union-attr] | |
rasa/core/agent.py:825: error: Argument 6 to "visualize_stories" has incompatible type "Optional[str]"; expected "Optional[TrainingData]" [arg-type] | |
rasa/core/agent.py:844: error: Argument 2 to "MessageProcessor" has incompatible type "Optional[PolicyEnsemble]"; expected "PolicyEnsemble" [arg-type] | |
rasa/core/agent.py:849: error: Argument "message_preprocessor" to "MessageProcessor" has incompatible type "Optional[Callable[[str], str]]"; expected "Optional[FunctionType]" [arg-type] | |
rasa/core/agent.py:921: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] | |
rasa/server.py:165: error: Too many arguments [call-arg] | |
rasa/server.py:173: error: Too many arguments [call-arg] | |
rasa/server.py:187: error: Too many arguments [call-arg] | |
rasa/server.py:233: error: Incompatible return value type (got "Optional[DialogueStateTracker]", expected "DialogueStateTracker") [return-value] | |
rasa/server.py:640: error: Incompatible types in assignment (expression has type "List[Any]", target has type "Dict[str, Any]") [assignment] | |
rasa/server.py:694: error: Incompatible types in assignment (expression has type "List[Any]", target has type "Dict[str, Any]") [assignment] | |
rasa/server.py:875: error: Argument 2 to "run_evaluation" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/run.py:105: error: Argument "jwt_method" to "create_app" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/run.py:241: error: Incompatible types in assignment (expression has type "None", variable has type "NaturalLanguageInterpreter") [assignment] | |
rasa/core/training/interactive.py:89: error: Need type annotation for 'NEW_TEMPLATES' (hint: "NEW_TEMPLATES: Dict[<type>, <type>] = ...") [var-annotated] | |
rasa/core/training/interactive.py:140: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:152: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:160: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:168: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:179: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:199: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:240: error: Incompatible return value type (got "Optional[Any]", expected "Dict[str, Any]") [return-value] | |
rasa/core/training/interactive.py:250: error: Need type annotation for 'data' [var-annotated] | |
rasa/core/training/interactive.py:255: error: Unsupported operand types for + ("str" and "None") [operator] | |
rasa/core/training/interactive.py:255: note: Right operand is of type "Optional[Any]" | |
rasa/core/training/interactive.py:258: error: Unsupported operand types for + ("str" and "None") [operator] | |
rasa/core/training/interactive.py:258: note: Right operand is of type "Optional[Any]" | |
rasa/core/training/interactive.py:270: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/training/interactive.py:276: error: Argument 1 to "enumerate" has incompatible type "Optional[Any]"; expected "Iterable[Any]" [arg-type] | |
rasa/core/training/interactive.py:553: error: Argument 1 to "wrap" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/core/training/interactive.py:598: error: Missing return statement [return] | |
rasa/core/training/interactive.py:657: error: Incompatible types in assignment (expression has type "List[Dict[str, str]]", variable has type "List[Dict[str, Optional[Any]]]") [assignment] | |
rasa/core/training/interactive.py:657: error: Unsupported operand types for + ("List[Dict[str, str]]" and "List[Dict[str, Optional[Any]]]") [operator] | |
rasa/core/training/interactive.py:731: error: Need type annotation for 'current' (hint: "current: List[<type>] = ...") [var-annotated] | |
rasa/core/training/interactive.py:888: error: Incompatible types in assignment (expression has type "Dict[Any, Dict[str, str]]", variable has type "Dict[str, List[Dict[str, Any]]]") [assignment] | |
rasa/core/training/interactive.py:924: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/core/training/interactive.py:926: error: Value of type "Optional[Any]" is not indexable [index] | |
rasa/core/training/interactive.py:932: error: Argument 1 to "_plot_trackers" has incompatible type "List[str]"; expected "List[Union[str, List[Event]]]" [arg-type] | |
rasa/core/training/interactive.py:932: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/interactive.py:932: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/training/interactive.py:939: error: Argument 2 to "_validate_action" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/core/training/interactive.py:939: error: Argument 3 to "_validate_action" has incompatible type "Optional[Any]"; expected "float" [arg-type] | |
rasa/core/training/interactive.py:939: error: Argument 4 to "_validate_action" has incompatible type "Optional[Any]"; expected "List[Dict[str, Any]]" [arg-type] | |
rasa/core/training/interactive.py:942: error: Argument 1 to "_plot_trackers" has incompatible type "List[str]"; expected "List[Union[str, List[Event]]]" [arg-type] | |
rasa/core/training/interactive.py:942: note: "List" is invariant -- see http://mypy.readthedocs.io/en/latest/common_issues.html#variance | |
rasa/core/training/interactive.py:942: note: Consider using "Sequence" instead, which is covariant | |
rasa/core/training/interactive.py:1428: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] | |
rasa/core/training/interactive.py:1433: error: Argument 2 to "is_limit_reached" has incompatible type "Optional[int]"; expected "int" [arg-type] | |
rasa/core/training/interactive.py:1442: error: Argument 3 to "_predict_till_next_listen" has incompatible type "List[Union[str, List[Event]]]"; expected "List[str]" [arg-type] | |
rasa/core/training/interactive.py:1500: error: List item 0 has incompatible type "str"; expected "deque[Event]" [list-item] | |
rasa/core/training/interactive.py:1502: error: Incompatible return value type (got "List[deque[Event]]", expected "List[Union[str, List[Event]]]") [return-value] | |
rasa/core/training/interactive.py:1660: error: Incompatible types in assignment (expression has type "None", variable has type "Process") [assignment] | |
rasa/core/training/interactive.py:1663: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[Any]"; expected "str" [arg-type] | |
rasa/jupyter.py:43: error: Incompatible types in assignment (expression has type "NaturalLanguageInterpreter", variable has type "None") [assignment] | |
rasa/jupyter.py:59: error: Item "None" of "Optional[List[Dict[str, Any]]]" has no attribute "__iter__" (not iterable) [union-attr] | |
rasa/utils/tensorflow/environment.py:90: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] | |
rasa/utils/tensorflow/environment.py:91: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] | |
rasa/utils/tensorflow/environment.py:101: error: Incompatible return value type (got "Dict[str, str]", expected "Dict[int, int]") [return-value] | |
rasa/utils/tensorflow/environment.py:117: error: Incompatible types in assignment (expression has type "int", variable has type "Optional[str]") [assignment] | |
rasa/utils/tensorflow/environment.py:128: error: Incompatible types in assignment (expression has type "int", variable has type "Optional[str]") [assignment] | |
rasa/core/restore.py:85: error: Need type annotation for 'actions_between_utterances' (hint: "actions_between_utterances: List[<type>] = ...") [var-annotated] | |
rasa/core/restore.py:98: error: Argument 1 to "handle_text" of "Agent" has incompatible type "Optional[str]"; expected "Union[str, Dict[str, Any]]" [arg-type] | |
rasa/core/restore.py:112: error: Incompatible types in assignment (expression has type "Optional[DialogueStateTracker]", variable has type "DialogueStateTracker") [assignment] | |
rasa/core/exporter.py:90: error: Argument 1 to "PublishingError" has incompatible type "Optional[Any]"; expected "float" [arg-type] | |
rasa/core/exporter.py:160: error: Argument 1 to "set" has incompatible type "Optional[str]"; expected "Iterable[str]" [arg-type] | |
rasa/core/exporter.py:286: error: Incompatible types in assignment (expression has type "Iterator[Dict[str, Any]]", variable has type "List[Dict[str, Any]]") [assignment] | |
rasa/core/exporter.py:292: error: Incompatible types in assignment (expression has type "Iterator[Dict[str, Any]]", variable has type "List[Dict[str, Any]]") [assignment] | |
rasa/core/training/story_writer/yaml_story_writer.py:70: error: Incompatible types in assignment (expression has type "List[OrderedDict[Any, Any]]", target has type "DoubleQuotedScalarString") [assignment] | |
rasa/core/training/story_writer/yaml_story_writer.py:100: error: Argument 1 to "process_or_utterances" of "YAMLStoryWriter" has incompatible type "List[Event]"; expected "List[UserUttered]" [arg-type] | |
rasa/core/training/story_writer/yaml_story_writer.py:112: error: Incompatible types in assignment (expression has type "List[OrderedDict[Any, Any]]", target has type "Optional[str]") [assignment] | |
rasa/core/training/story_writer/yaml_story_writer.py:197: error: Incompatible types in assignment (expression has type "List[Dict[str, Any]]", target has type "Optional[str]") [assignment] | |
rasa/core/policies/ted_policy.py:185: error: Signature of "_standard_featurizer" incompatible with supertype "Policy" [override] | |
rasa/core/policies/ted_policy.py:239: error: Item "None" of "Optional[RasaModelData]" has no attribute "get" [union-attr] | |
rasa/core/policies/ted_policy.py:323: error: Argument 2 to "fit" of "RasaModel" has incompatible type "object"; expected "int" [arg-type] | |
rasa/core/policies/ted_policy.py:324: error: Argument 3 to "fit" of "RasaModel" has incompatible type "object"; expected "Union[List[int], int]" [arg-type] | |
rasa/core/policies/ted_policy.py:325: error: Argument 4 to "fit" of "RasaModel" has incompatible type "object"; expected "int" [arg-type] | |
rasa/core/policies/ted_policy.py:326: error: Argument 5 to "fit" of "RasaModel" has incompatible type "object"; expected "int" [arg-type] | |
rasa/core/policies/ted_policy.py:327: error: Argument "batch_strategy" to "fit" of "RasaModel" has incompatible type "object"; expected "str" [arg-type] | |
rasa/core/policies/ted_policy.py:355: error: Unsupported operand types for < ("int" and "object") [operator] | |
rasa/core/policies/ted_policy.py:356: error: Argument 2 to "normalize" has incompatible type "object"; expected "Optional[int]" [arg-type] | |
rasa/core/policies/ted_policy.py:642: error: Value of type "None" is not indexable [index] | |
rasa/core/policies/sklearn_policy.py:40: error: Invalid type comment or annotation [valid-type] | |
rasa/core/policies/sklearn_policy.py:42: error: Invalid type comment or annotation [valid-type] | |
rasa/cli/train.py:69: error: Argument "domain" to "train" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/train.py:71: error: Argument "training_files" to "train" has incompatible type "List[Optional[str]]"; expected "Union[str, List[str]]" [arg-type] | |
rasa/cli/train.py:81: note: "train_core" defined here | |
rasa/cli/train.py:81: error: Missing return statement [return] | |
rasa/cli/train.py:84: error: Incompatible import of "train_core" (imported name has type "Callable[[Union[Domain, str], str, str, str, Optional[str], Optional[str], Optional[Dict[Any, Any]]], Optional[str]]", local name has type "Callable[[Namespace, Optional[str]], Optional[str]]") [misc] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "domain" for "train_core" [call-arg] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "config" for "train_core" [call-arg] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "stories" for "train_core" [call-arg] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "output" for "train_core" [call-arg] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "fixed_model_name" for "train_core" [call-arg] | |
rasa/cli/train.py:106: error: Unexpected keyword argument "additional_arguments" for "train_core" [call-arg] | |
rasa/cli/train.py:119: error: Argument 2 to "do_compare_training" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/train.py:123: note: "train_nlu" defined here | |
rasa/cli/train.py:126: error: Incompatible import of "train_nlu" (imported name has type "Callable[[str, str, str, Optional[str], Optional[str], bool, Optional[Dict[Any, Any]]], Optional[str]]", local name has type "Callable[[Namespace, Optional[str]], Optional[str]]") [misc] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "config" for "train_nlu" [call-arg] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "nlu_data" for "train_nlu" [call-arg] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "output" for "train_nlu" [call-arg] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "fixed_model_name" for "train_nlu" [call-arg] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "persist_nlu_training_data" for "train_nlu" [call-arg] | |
rasa/cli/train.py:135: error: Unexpected keyword argument "additional_arguments" for "train_nlu" [call-arg] | |
rasa/cli/train.py:184: error: Value of type variable "AnyStr" of "exists" cannot be "Optional[str]" [type-var] | |
rasa/cli/train.py:192: error: Argument 1 to "missing_config_keys" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/train.py:201: error: Incompatible return value type (got "Optional[str]", expected "str") [return-value] | |
rasa/cli/arguments/test.py:92: error: Argument 1 to "add_no_plot_param" has incompatible type "Union[ArgumentParser, _ActionsContainer]"; expected "ArgumentParser" [arg-type] | |
rasa/cli/arguments/test.py:93: error: Argument 1 to "add_errors_success_params" has incompatible type "Union[ArgumentParser, _ActionsContainer]"; expected "ArgumentParser" [arg-type] | |
rasa/cli/arguments/test.py:150: error: Argument 1 to "add_no_plot_param" has incompatible type "Union[ArgumentParser, _ActionsContainer]"; expected "ArgumentParser" [arg-type] | |
rasa/cli/arguments/test.py:151: error: Argument 1 to "add_errors_success_params" has incompatible type "Union[ArgumentParser, _ActionsContainer]"; expected "ArgumentParser" [arg-type] | |
rasa/cli/test.py:148: error: Argument 1 to "perform_nlu_cross_validation" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/run.py:99: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/export.py:177: error: Argument 1 to "_prepare_event_broker" has incompatible type "Optional[EventBroker]"; expected "EventBroker" [arg-type] | |
rasa/cli/export.py:184: error: Argument 2 to "Exporter" has incompatible type "Optional[EventBroker]"; expected "EventBroker" [arg-type] | |
rasa/cli/export.py:186: error: Argument 4 to "Exporter" has incompatible type "Optional[List[str]]"; expected "Optional[str]" [arg-type] | |
rasa/cli/x.py:189: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/x.py:263: error: Argument 2 to "join" has incompatible type "Optional[str]"; expected "Union[str, _PathLike[str]]" [arg-type] | |
rasa/cli/x.py:344: error: Argument 1 to "get" of "ClientSession" has incompatible type "Optional[str]"; expected "Union[str, URL]" [arg-type] | |
rasa/cli/x.py:380: error: Argument 1 to "read_endpoints" of "AvailableEndpoints" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/x.py:399: error: 'None' object is not iterable [misc] | |
rasa/cli/shell.py:66: error: Argument 1 to "get_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/shell.py:96: error: Argument 1 to "get_model" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/shell.py:109: error: Argument 1 to "run_cmdline" has incompatible type "Optional[str]"; expected "str" [arg-type] | |
rasa/cli/interactive.py:111: error: Argument 1 to "isdir" has incompatible type "Optional[str]"; expected "Union[bytes, str, _PathLike[Any]]" [arg-type] | |
rasa/cli/interactive.py:112: error: Argument 1 to "get_latest_model" has incompatible type "Optional[str]"; expected "str" [arg-type] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment