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

"Type of ... is partially unknown" with reflexive types #721

Closed
rufketo opened this issue Dec 11, 2020 · 7 comments
Closed

"Type of ... is partially unknown" with reflexive types #721

rufketo opened this issue Dec 11, 2020 · 7 comments
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@rufketo
Copy link

rufketo commented Dec 11, 2020

Environment data

  • Language Server version: Name: 2020.12.2-pre.1
  • OS and version: Fedora 33
  • Python version: 3.9.0, from system repository

Expected behaviour

no error

Actual behaviour

output in problem panel:

{
	"resource": "/home/rufketo/temp/pylance_test.py",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "Type of \"result\" is partially unknown\n  Type of \"result\" is \"dict[str, Unknown]\"",
	"source": "Pylance (reportUnknownVariableType)",
	"startLineNumber": 8,
	"startColumn": 5,
	"endLineNumber": 8,
	"endColumn": 11
}
{
	"resource": "/home/rufketo/temp/pylance_test.py",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "Return type, \"dict[str, Unknown]\", is partially unknown",
	"source": "Pylance (reportUnknownVariableType)",
	"startLineNumber": 9,
	"startColumn": 12,
	"endLineNumber": 9,
	"endColumn": 18
}

Logs

[Info  - 17:10:43] Pylance language server 2020.12.2-pre.1 (pyright 4ef6f2b2) starting
[Info  - 17:10:43] Server root directory: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist
[Info  - 17:10:43] Setting pythonPath for service "<default>": "/usr/bin/python"
Search paths found for configured python interpreter:
  /usr/lib64/python3.9
  /usr/lib64/python3.9/lib-dynload
  /home/rufketo/.local/lib/python3.9/site-packages
  /usr/lib64/python3.9/site-packages
  /usr/lib/python3.9/site-packages
[Error - 17:10:43] stubPath typings is not a valid directory.
[Info  - 17:10:43] Assuming Python version 3.9
[Info  - 17:10:43] Assuming Python platform Linux
[Info  - 17:10:43] Searching for source files
[Info  - 17:10:43] No source files found.
[FG] parsing: /home/rufketo/temp/pylance_test.py (50ms)
[FG] parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi [fs read 5ms] (50ms)
[FG] binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi (50ms)
[FG] binding: /home/rufketo/temp/pylance_test.py (5ms)
[Info  - 17:10:43] Background analysis(1) root directory: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist
[Info  - 17:10:43] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
[Info  - 17:10:43] Indexer background runner(2) root directory: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist
[Info  - 17:10:43] Indexing(2) started
Background analysis message: analyze
[IDX(2)] index libraries  ...
[IDX(2)]   read stdlib indices (50ms)
[BG(1)] analyzing: /home/rufketo/temp/pylance_test.py ...
[BG(1)]   parsing: /home/rufketo/temp/pylance_test.py (50ms)
[BG(1)]   parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi [fs read 5ms] (500ms)
[BG(1)]   binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi (50ms)
[BG(1)]   binding: /home/rufketo/temp/pylance_test.py (5ms)
[BG(1)]   checking: /home/rufketo/temp/pylance_test.py ...
[BG(1)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/typing.pyi [fs read 5ms] (50ms)
[BG(1)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/typing.pyi (5ms)
[IDX(2)]   scan packages [found 500 modules over 1 exec env] (500ms)
[BG(1)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/2and3/_typeshed/__init__.pyi [fs read 5ms] (50ms)
[BG(1)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/2and3/_typeshed/__init__.pyi (5ms)
[BG(1)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/typing_extensions.pyi [fs read 5ms] (5ms)
[BG(1)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/typing_extensions.pyi (5ms)
[BG(1)]   checking: /home/rufketo/temp/pylance_test.py (50ms)
[BG(1)] analyzing: /home/rufketo/temp/pylance_test.py (500ms)
Background analysis message: resumeAnalysis
[IDX(2)]   index execution environment  ...
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/3/pkg_resources/__init__.pyi [fs read 5ms] (50ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi [fs read 5ms] (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/builtins.pyi (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/3/pkg_resources/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/3/pkg_resources/__init__.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/attr/__init__.pyi [fs read 5ms] (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/attr/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/attr/__init__.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/linkifier.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/linkifier.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/sanitizer.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/sanitizer.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/bleach/__init__.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/universaldetector.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/universaldetector.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/chardet/__init__.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/core.pyi [fs read 5ms] (50ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/core.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/decorators.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/decorators.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/exceptions.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/exceptions.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/formatting.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/formatting.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/globals.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/globals.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/parser.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/parser.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/termui.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/termui.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/types.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/types.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/utils.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/utils.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/click/__init__.pyi [found 50] (50ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/cryptography/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/cryptography/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/cryptography/__init__.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/dateutil/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/dateutil/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/dateutil/__init__.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/app.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/app.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/blueprints.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/blueprints.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/config.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/config.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/ctx.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/ctx.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/globals.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/globals.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/helpers.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/helpers.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/json/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/json/__init__.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/signals.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/signals.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/templating.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/templating.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/wrappers.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/wrappers.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/flask/__init__.pyi [found 50] (50ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/itsdangerous.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/itsdangerous.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/itsdangerous.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/__init__.pyi [fs read 5ms] (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/bccache.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/bccache.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/environment.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/environment.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/exceptions.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/exceptions.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/filters.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/filters.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/loaders.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/loaders.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/runtime.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/runtime.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/utils.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/utils.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/markupsafe/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/markupsafe/__init__.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/markupsafe/_native.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/markupsafe/_native.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/jinja2/__init__.pyi [found 50] (50ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/markupsafe/__init__.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/__init__.pyi [fs read 5ms] (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/agent.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/agent.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/channel.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/channel.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/client.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/client.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/common.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/common.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/config.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/config.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/dsskey.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/dsskey.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ecdsakey.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ecdsakey.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ed25519key.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ed25519key.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/file.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/file.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/hostkeys.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/hostkeys.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/message.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/message.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/pkey.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/pkey.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/proxy.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/proxy.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/rsakey.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/rsakey.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/server.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/server.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_attr.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_attr.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_client.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_client.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_file.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_file.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_handle.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_handle.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_server.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_server.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_si.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/sftp_si.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ssh_exception.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/ssh_exception.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/transport.pyi [fs read 5ms] (50ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/transport.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/paramiko/__init__.pyi [found 50] (50ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/pytz/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/pytz/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/pytz/__init__.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/api.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/api.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/exceptions.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/exceptions.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/models.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/models.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/sessions.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/sessions.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/status_codes.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/status_codes.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/requests/__init__.pyi [found 50] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/toml.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/toml.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/toml.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/werkzeug/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/werkzeug/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/werkzeug/__init__.pyi [found 500] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/__init__.pyi [fs read 5ms] (50ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/dumper.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/dumper.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/error.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/error.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/events.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/events.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/loader.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/loader.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/nodes.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/nodes.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/tokens.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/tokens.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/cyaml.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/cyaml.pyi (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/__init__.pyi (50ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/__init__.pyi ...
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/emitter.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/emitter.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/representer.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/representer.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/resolver.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/resolver.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/serializer.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/serializer.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/composer.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/composer.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/constructor.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/constructor.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/parser.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/parser.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/reader.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/reader.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/scanner.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/scanner.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/2and3/_typeshed/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/2and3/_typeshed/__init__.pyi (5ms)
[IDX(2)]       parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/typing.pyi [fs read 5ms] (50ms)
[IDX(2)]       binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/stdlib/3/typing.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/typeshed-fallback/third_party/2and3/yaml/__init__.pyi [found 500] (50ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/PIL/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/PIL/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/PIL/__init__.pyi [found 5] (5ms)
[IDX(2)]     parsing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/jmespath/__init__.pyi [fs read 5ms] (5ms)
[IDX(2)]     binding: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/jmespath/__init__.pyi (5ms)
[IDX(2)]     indexing: /home/rufketo/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.12.2-pre.1/dist/bundled/stubs/jmespath/__init__.pyi [found 5] (5ms)
[[ several hundred unrelated machine files and user files are processed ]]
[IDX(2)]   index execution environment  [found 5000 in 500 files] (3000ms)
[Info  - 17:10:46] [IDX(2)] Long operation: index execution environment  (3000ms)
[IDX(2)] index libraries  [found 5000 in 1 exec envs] (3000ms)
[Info  - 17:10:46] [IDX(2)] Long operation: index libraries  (3000ms)
[Info  - 17:10:46] Indexer done(2). indexed 500 files

Code Snippet / Additional information

#from __future__ import annotations
from typing import (MutableMapping, Union)

ContentsEntryType = Union["ContentsDictType", bool]
ContentsDictType = MutableMapping[str, "ContentsEntryType"]

def create_contents_dict() -> ContentsDictType:
    result: ContentsDictType = dict()
    return result

Uncommenting the first line makes no difference.

@judej
Copy link
Contributor

judej commented Dec 14, 2020

@erictraut could you please take a look?

@erictraut
Copy link
Contributor

This will work if you make the following change:

ContentsDictType = Dict[str, "ContentsEntryType"]

Some additional background on why this change is required... The challenge here is with recursive type definitions that include types with invariant type parameters (such as Dict, MutableMapping, or List). If we strictly adhere to the definition of an "invariant TypeVar" as explained in PEP 483 and 484, recursive type definitions that involve invariant type parameters cannot be supported because there's no way for a recursive type to be invariant with itself. When I introduced support for recursive type alias definitions in Pyright/Pylance, I needed bend the rules a little bit to accommodate this problem. This comes with the limitation that we don't support hierarchies of types that support invariant TypeVars. You must use the exact type in the type alias. In your case, you used MutableMapping rather than Dict in your type alias definition, but then you attempted to assign a dict to it. The logic that "bends the rules" for type invariance is unable to handle this. The workaround is to use Dict in the type alias definition.

@jakebailey jakebailey added the waiting for user response Requires more information from user label Dec 14, 2020
@github-actions github-actions bot removed the triage label Dec 14, 2020
@rufketo rufketo changed the title Problem with reflexive types "Type of ... is partially unknown" with reflexive types Dec 14, 2020
@rufketo
Copy link
Author

rufketo commented Dec 14, 2020

Thank you! So if I understood correctly, the Python's type system specification seems to have a bug, as other programming languages are able to resolve such situations.

I encountered another problem:

from typing import (Dict, Union)

ContentsDictType = Dict[str, "ContentsEntryType"]
ContentsEntryType = Union["ContentsDictType", bool]

entry: ContentsEntryType = dict()

Message:

Type of "entry" is partially unknown
  Type of "entry" is "dict[Unknown, Unknown]"

@jakebailey
Copy link
Member

@erictraut Seems like we missed this one; I can reproduce the above in the latest release where entry is partially unknown.

image

@jakebailey jakebailey added needs investigation Could be an issue - needs investigation and removed waiting for user response Requires more information from user labels Jan 25, 2021
@erictraut
Copy link
Contributor

Yeah, there are limitations involved with using recursive type definitions. Supporting these even in limited cases is very difficult in Python. No other type checkers have any support for them currently.

I'll take a look at this particular case to see if it's feasible to address. In the meantime, there's a simple workaround. Just combine the two definitions into a single entry:

ContentsEntryType = Union[Dict[str, "ContentsEntryType"], bool]

@erictraut
Copy link
Contributor

Yes, this is easy to fix. It will be addressed in the next release.

@erictraut erictraut added bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels Jan 25, 2021
@jakebailey
Copy link
Member

This issue has been fixed in version 2021.1.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202113-27-january-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants