New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Sequence
instead of Union[List[…], Tuple[…]]
#3412
Conversation
As mentioned in the related issue, using |
as mentioned in the issue itself, using Sequence[something other than str] already excludes str :) |
Sequence
instead of Union[List[…], Tuple[…]]
Indeed but I see that there's a few places where This typing issue really is a problem in my opinion, as you can see in the |
The meaning #3350 (comment) is that we have to make sure not to pass strings as list of chars to TG, e.g. for In the cases of the parameters
You are right that providing a precise type annotation for this doesn't seem possible atm. Personally I'd still be okay with using
|
Yes I agree (Some people suggested the idea of using a |
it is supposed to be in #3412 only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! :) Thanks for the PR! Harshil in fact already covered two comments that I had in the pipeline xD
Thank you very much for your work on this nice PR @clot27 |
Working on #3350 with this
closes #3350