Skip to content
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

InvalidOperationException with empty stack on `Literal[True]` annotation #1640

jakebailey opened this issue Oct 7, 2019 · 1 comment · Fixed by #1650


Copy link

commented Oct 7, 2019

        [TestMethod, Priority(0)]
        public async Task LiteralParameter() {
            const string code = @"
from typing import Literal

def f(handle: int, overlapped: Literal[True]):
            var analysis = await GetAnalysisAsync(code);
                    .Which.Should().HaveParameters("handle", "overlapped");


This is a simplified version of the changes added to _winapi's stub in the latest typeshed:

def ConnectNamedPipe(handle: int, overlapped: Literal[True]) -> Overlapped: ...
@jakebailey jakebailey added the bug label Oct 7, 2019

This comment has been minimized.

Copy link
Member Author

commented Oct 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.