Replies: 1 comment 3 replies
-
|
Moving to a discussion topic since this is a question, not a bug report. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I am trying to create a generic protocol that passes through any value from one method to another. This is optional, so
return Noneakareturnshould be allowed - in such a case, the idea is forNoneto be propagated. AssumingNoneisn't part of the default bound of a type variable, I would at least expectbound = Any | Noneto work, but it seems thatNoneis always not allowed for aT.Code or Screenshots
If possible, provide a minimal, self-contained code sample (surrounded by triple back ticks) to demonstrate the issue. The code should define or import all referenced symbols.
If your code relies on symbols that are imported from a third-party library, include the associated import statements and specify which versions of those libraries you have installed.
VS Code extension or command-line
CLI command, v1.1.403
Beta Was this translation helpful? Give feedback.
All reactions