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 #96

Closed
DetachHead opened this issue Feb 18, 2024 · 2 comments
Closed

ability to specify multiple pythonVersions #96

DetachHead opened this issue Feb 18, 2024 · 2 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

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 unreachable issues about unreachable code (which doesn't get typechecked) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it labels Feb 18, 2024
@KotlinIsland
Copy link
Collaborator

Should be fairly easy, but #103 would overshadow it.

@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 the config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) label Jun 13, 2024
@DetachHead
Copy link
Owner Author

Duplicate of #8

@DetachHead DetachHead marked this as a duplicate of #8 Jun 13, 2024
@DetachHead DetachHead closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
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

2 participants