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

[stubs] SecurityError not recognized as Exception #1030

Closed
streambinder opened this issue Jun 12, 2023 · 1 comment
Closed

[stubs] SecurityError not recognized as Exception #1030

streambinder opened this issue Jun 12, 2023 · 1 comment
Assignees
Labels

Comments

@streambinder
Copy link

Describe the bug

Cannot raise NoPermission instance as:

Expression e has type vim.fault.NoPermission but must extend BaseException.

Reference code:

def f() -> None:
    ...
    try:
        return partial(vim.ServiceInstance, ...)()
    except vim.fault.NoPermission as e:
        ...
        raise e

Reproduction steps

  1. write a function which: raise vim.fault.NoPermission()
  2. run mypy/pyre against it

Expected behavior

I'd expect raise vim.fault.NoPermission() to not be linted as an error.

Additional context

No response

@DanielDraganov
Copy link
Collaborator

Fixed in 4e387cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants