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

ability to specify multiple pythonVersions #8

Open
DetachHead opened this issue Dec 2, 2023 · 0 comments
Open

ability to specify multiple pythonVersions #8

DetachHead opened this issue Dec 2, 2023 · 0 comments
Labels
config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules unreachable issues about unreachable code (which doesn't get typechecked)

Comments

@DetachHead
Copy link
Owner

DetachHead commented Dec 2, 2023

related: #7

Is your feature request related to a problem? Please describe.
as far as i can tell, there's no way to specify multiple python versions, so the following code will result in an unreachable code error:

if sys.version_info >= (3, 10):
    ...
else:
    ...

Describe the solution you'd like
option to specify pythonVersion as an array, or to just turn off the inspection entirely

Additional context

rejected upstream issue: microsoft/pyright#2231

@DetachHead DetachHead added the unreachable issues about unreachable code (which doesn't get typechecked) label Dec 2, 2023
@DetachHead DetachHead added the type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules label Mar 24, 2024
@DetachHead DetachHead added config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it labels Jun 13, 2024
@DetachHead DetachHead marked this as a duplicate of #96 Jan 17, 2025
@DetachHead DetachHead marked this as a duplicate of #938 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules unreachable issues about unreachable code (which doesn't get typechecked)
Projects
None yet
Development

No branches or pull requests

1 participant