Skip to content

Conversation

@asdkant-ey
Copy link

@asdkant-ey asdkant-ey commented Dec 29, 2020

Fixes 1458 but only for a single file. It'd be a good idea to scan all the code for other occurrences of the issue.

Description

VSCode's pylance complained about this, the message was:

List expression not allowed in type annotation
  Use List[T] instead

Specific Changes

  • Changed [str] to List[str] in the type annotation of get_suggestions_card()

VSCode's pylance complained about this, the message was:
```
List expression not allowed in type annotation
  Use List[T] instead
```
It'd be a good idea to scan all the code for other occurrences of the issue.
Copy link
Member

@tracyboehrer tracyboehrer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does produce an error during build:

libraries/botbuilder-ai/botbuilder/ai/qna/utils/qna_card_builder.py:17: in QnACardBuilder
suggestions: List[str], card_title: str, card_no_match: str
E NameError: name 'List' is not defined

@srinaath
Copy link

srinaath commented Feb 2, 2021

@tracyboehrer Can we get some traction on this PR from the customer.

@tracyboehrer
Copy link
Member

Replaced by #1491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants