microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 769 forks source link

Pylance reporting type errors when selecting a slice from a Pandas DataFrame with a MultiIndex #4818

Closed jonmooser closed 9 months ago

jonmooser commented 1 year ago

I'm not sure if this is an issue with Pylance or Pandas, but I thought I'd start here. Some seemingly valid Pandas code is reported as a type error. But the syntax is exactly as shown in the pandas docs: (See https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#cross-section)

Environment data

Code Snippet

import numpy as np
import pandas as pd

cols = pd.MultiIndex.from_product([['Jul', 'Aug'], ['min', 'max']])
df = pd.DataFrame([[70, 89, 72, 95], [40, 60, 45, 65]], columns=cols, index=['temp', 'humid'])
print(df)

# type error here
df2 = df.loc[:, (slice(None), 'max')]
print(df2)

Repro Steps

Open the code above in a new file in VSCode

Expected behavior

Pylance should not find any errors

Actual behavior

Pylance reports a type error:

Argument of type "tuple[slice, tuple[slice, Literal['max']]]" cannot be assigned to parameter "idx" of type "tuple[Scalar, slice]" in function "__getitem__"
  "tuple[slice, tuple[slice, Literal['max']]]" is incompatible with "tuple[Scalar, slice]"
    Tuple entry 1 is incorrect type
      Type "slice" cannot be assigned to type "Scalar"
        "slice" is incompatible with "str"
        "slice" is incompatible with "bytes"
        "slice" is incompatible with "date"
        "slice" is incompatible with "datetime"
        "slice" is incompatible with "timedelta"

To be sure, the output is as expected:

      Jul     Aug
      min max min max
temp   70  89  72  95
humid  40  60  45  65
      Jul Aug
      max max
temp   89  95
humid  60  65

Logs

2023-09-08 14:22:31.786 [info] [Info  - 2:22:31 PM] (7365) Pylance language server 2023.9.10 (pyright c70adefc) starting
2023-09-08 14:22:31.786 [info] [Info  - 2:22:31 PM] (7365) Server root directory: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:31.786 [info] [Info  - 2:22:31 PM] (7365) Starting service instance "pylance_checks"
2023-09-08 14:22:31.804 [info] [Info  - 2:22:31 PM] (7365) Setting pythonPath for service "pylance_checks": "/usr/local/bin/python3.11"
2023-09-08 14:22:31.805 [info] [Info  - 2:22:31 PM] (7365) Setting pythonPath for service "pylance_checks": "/usr/local/bin/python3.11"
2023-09-08 14:22:31.805 [info] [Info  - 2:22:31 PM] (7365) Loading configuration file at /Users/jonathan/Dropbox/py/pylance_checks/pyrightconfig.json
2023-09-08 14:22:31.810 [info] [Info  - 2:22:31 PM] (7365) No include entries specified; assuming /Users/jonathan/Dropbox/py/pylance_checks
2023-09-08 14:22:31.810 [info] [Warn  - 2:22:31 PM] (7365) The stubPath has been specified in both the config file and the client settings. The value in the config file (/Users/jonathan/Dropbox/py/pylance_checks/src/stubs) will take precedence
2023-09-08 14:22:31.810 [info] [Warn  - 2:22:31 PM] (7365) stubPath /Users/jonathan/Dropbox/py/pylance_checks/src/stubs is not a valid directory.
2023-09-08 14:22:31.810 [info] [Error - 2:22:31 PM] (7365) venv env367 subdirectory not found in venv path /Users/jonathan/py/envs.
2023-09-08 14:22:31.839 [info] [Info  - 2:22:31 PM] (7365) Search paths for /Users/jonathan/Dropbox/py/pylance_checks
2023-09-08 14:22:31.839 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib
2023-09-08 14:22:31.839 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/Dropbox/py/pylance_checks
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/py
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/Dropbox/py/pylance_checks/''
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/Dropbox/py/pylance_checks/src/stubs
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stubs/...
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
2023-09-08 14:22:31.840 [info] [Info  - 2:22:31 PM] (7365)   /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:31.841 [info] [Info  - 2:22:31 PM] (7365) Adding fs watcher for library directories:
 /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:31.841 [info] [Info  - 2:22:31 PM] (7365) Adding fs watcher for directories:
 /Users/jonathan/Dropbox/py/pylance_checks
2023-09-08 14:22:31.841 [info] (7365) Searching for source files
2023-09-08 14:22:31.848 [info] [Info  - 2:22:31 PM] (7365) Found 1 source file
2023-09-08 14:22:32.093 [info] (7365) [BG(1)] getSemanticTokens full at /Users/jonathan/Dropbox/py/pylance_checks/checks.py ...
2023-09-08 14:22:32.093 [info] (7365) [BG(1)]   parsing: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (33ms)
2023-09-08 14:22:32.118 [info] (7365) [FG] parsing: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (22ms)
2023-09-08 14:22:32.188 [info] (7365) [FG] parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 8ms] (69ms)
2023-09-08 14:22:32.217 [info] (7365) [FG] binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/builtins.pyi (27ms)
2023-09-08 14:22:32.217 [info] (7365) [FG] binding: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (1ms)
2023-09-08 14:22:32.223 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 3ms] (64ms)
2023-09-08 14:22:32.223 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/builtins.pyi (29ms)
2023-09-08 14:22:32.223 [info] (7365) [BG(1)]   binding: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (0ms)
2023-09-08 14:22:32.224 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (10ms)
2023-09-08 14:22:32.224 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/typing.pyi (3ms)
2023-09-08 14:22:32.224 [info] (7365) [IDX(2)] scan packages /Users/jonathan/Dropbox/py/pylance_checks ...
2023-09-08 14:22:32.225 [info] (7365) [IDX(2)]   read stdlib indices (17ms)
2023-09-08 14:22:32.225 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (10ms)
2023-09-08 14:22:32.227 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
2023-09-08 14:22:32.240 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 1ms] (3ms)
2023-09-08 14:22:32.242 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
2023-09-08 14:22:32.246 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (3ms)
2023-09-08 14:22:32.248 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/types.pyi (3ms)
2023-09-08 14:22:32.255 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (0ms)
2023-09-08 14:22:32.255 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
2023-09-08 14:22:32.308 [info] (7365) [BG(1)]   parsing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/__init__.pyi [fs read 1ms] (53ms)
2023-09-08 14:22:32.321 [info] (7365) [BG(1)]   binding: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/__init__.pyi (11ms)
2023-09-08 14:22:32.335 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/__init__.pyi [fs read 0ms] (13ms)
2023-09-08 14:22:32.336 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/__init__.pyi (1ms)
2023-09-08 14:22:32.365 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/api.pyi [fs read 0ms] (26ms)
2023-09-08 14:22:32.365 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/api.pyi (0ms)
2023-09-08 14:22:32.368 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/api.pyi [fs read 0ms] (3ms)
2023-09-08 14:22:32.369 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/api.pyi (1ms)
2023-09-08 14:22:32.370 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/multi.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.372 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/multi.pyi (0ms)
2023-09-08 14:22:32.375 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/base.pyi [fs read 0ms] (3ms)
2023-09-08 14:22:32.376 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexes/base.pyi (1ms)
2023-09-08 14:22:32.377 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/base.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.378 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/base.pyi (1ms)
2023-09-08 14:22:32.379 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/arraylike.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.380 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/arraylike.pyi (0ms)
2023-09-08 14:22:32.384 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_typing.pyi [fs read 0ms] (4ms)
2023-09-08 14:22:32.386 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_typing.pyi (1ms)
2023-09-08 14:22:32.390 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (4ms)
2023-09-08 14:22:32.391 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/datetime.pyi (1ms)
2023-09-08 14:22:32.393 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/dtypes/dtypes.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.393 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/dtypes/dtypes.pyi (0ms)
2023-09-08 14:22:32.393 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/dtypes/base.pyi [fs read 0ms] (0ms)
2023-09-08 14:22:32.394 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/dtypes/base.pyi (1ms)
2023-09-08 14:22:32.400 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/__init__.pyi [fs read 0ms] (3ms)
2023-09-08 14:22:32.400 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/__init__.pyi (0ms)
2023-09-08 14:22:32.401 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/period.pyi [fs read 1ms] (2ms)
2023-09-08 14:22:32.402 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/period.pyi (1ms)
2023-09-08 14:22:32.404 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/interval.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.404 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/interval.pyi (0ms)
2023-09-08 14:22:32.406 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/timestamps.pyi [fs read 0ms] (2ms)
2023-09-08 14:22:32.408 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/timestamps.pyi (1ms)
2023-09-08 14:22:32.408 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/__init__.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.408 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/__init__.pyi (0ms)
2023-09-08 14:22:32.410 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/timedeltas.pyi [fs read 0ms] (2ms)
2023-09-08 14:22:32.411 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/tslibs/timedeltas.pyi (0ms)
2023-09-08 14:22:32.418 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/collections/abc.pyi [fs read 1ms] (1ms)
2023-09-08 14:22:32.419 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/collections/abc.pyi ...
2023-09-08 14:22:32.419 [info] (7365) [BG(1)]     parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/_collections_abc.pyi [fs read 0ms] (0ms)
2023-09-08 14:22:32.420 [info] (7365) [BG(1)]     binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/_collections_abc.pyi (1ms)
2023-09-08 14:22:32.420 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib/collections/abc.pyi (1ms)
2023-09-08 14:22:32.420 [info] (7365) [IDX(2)] scan packages /Users/jonathan/Dropbox/py/pylance_checks (317ms)
2023-09-08 14:22:32.445 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/frame.pyi [fs read 0ms] (20ms)
2023-09-08 14:22:32.446 [info] [Info  - 2:22:32 PM] (7365) Could not import 'xarray' in file '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/frame.pyi'
2023-09-08 14:22:32.446 [info] [Info  - 2:22:32 PM] (7365)   Looking in stubPath '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.446 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.446 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.446 [info] [Info  - 2:22:32 PM] (7365)   Looking in root directory of execution environment '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.447 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.447 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.447 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/py'
2023-09-08 14:22:32.447 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/py'
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/py'
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Finding python search paths
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib'
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib64'
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/Lib'
2023-09-08 14:22:32.448 [info] [Info  - 2:22:32 PM] (7365)   Did not find any 'site-packages' dirs. Falling back on python interpreter.
2023-09-08 14:22:32.449 [info] [Info  - 2:22:32 PM] (7365)   Executing interpreter: '/usr/local/bin/python3.11'
2023-09-08 14:22:32.449 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/''' because it is not a valid directory
2023-09-08 14:22:32.449 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Library/Frameworks/Python.framework/Versions/3.11/lib/python311.zip' because it is not a valid directory
2023-09-08 14:22:32.449 [info] [Info  - 2:22:32 PM] (7365)   Received 4 paths from interpreter
2023-09-08 14:22:32.450 [info] [Info  - 2:22:32 PM] (7365)     /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:32.450 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
2023-09-08 14:22:32.452 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
2023-09-08 14:22:32.453 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:32.454 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.454 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.455 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.456 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.456 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.456 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.456 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.456 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.457 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.457 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.458 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.458 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.459 [info] [Info  - 2:22:32 PM] (7365)   Looking in bundled stubs path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.460 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.460 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.461 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.462 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.464 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib'
2023-09-08 14:22:32.465 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.466 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed third-party path
2023-09-08 14:22:32.467 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stubs path
2023-09-08 14:22:32.467 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.468 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/frame.pyi (11ms)
2023-09-08 14:22:32.468 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/generic.pyi [fs read 0ms] (3ms)
2023-09-08 14:22:32.469 [info] [Info  - 2:22:32 PM] (7365) Could not import 'sqlalchemy' in file '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/generic.pyi'
2023-09-08 14:22:32.470 [info] [Info  - 2:22:32 PM] (7365)   Looking in stubPath '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.472 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.472 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.472 [info] [Info  - 2:22:32 PM] (7365)   Looking in root directory of execution environment '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.472 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.473 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.473 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/py'
2023-09-08 14:22:32.473 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/py'
2023-09-08 14:22:32.473 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/py'
2023-09-08 14:22:32.474 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.475 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.476 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.476 [info] [Info  - 2:22:32 PM] (7365)   Finding python search paths
2023-09-08 14:22:32.476 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib'
2023-09-08 14:22:32.478 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib64'
2023-09-08 14:22:32.479 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/Lib'
2023-09-08 14:22:32.479 [info] [Info  - 2:22:32 PM] (7365)   Did not find any 'site-packages' dirs. Falling back on python interpreter.
2023-09-08 14:22:32.481 [info] [Info  - 2:22:32 PM] (7365)   Executing interpreter: '/usr/local/bin/python3.11'
2023-09-08 14:22:32.483 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/''' because it is not a valid directory
2023-09-08 14:22:32.483 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Library/Frameworks/Python.framework/Versions/3.11/lib/python311.zip' because it is not a valid directory
2023-09-08 14:22:32.484 [info] [Info  - 2:22:32 PM] (7365)   Received 4 paths from interpreter
2023-09-08 14:22:32.485 [info] [Info  - 2:22:32 PM] (7365)     /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:32.485 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
2023-09-08 14:22:32.487 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
2023-09-08 14:22:32.488 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:32.489 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.489 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.490 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.491 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.492 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.494 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.494 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.495 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.495 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.496 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Looking in bundled stubs path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.498 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib'
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed third-party path
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stubs path
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365) Could not import 'sqlalchemy.engine' in file '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/generic.pyi'
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Looking in stubPath '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.499 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Looking in root directory of execution environment '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/py'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/py'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/py'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Finding python search paths
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib64'
2023-09-08 14:22:32.500 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/Lib'
2023-09-08 14:22:32.501 [info] [Info  - 2:22:32 PM] (7365)   Did not find any 'site-packages' dirs. Falling back on python interpreter.
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)   Executing interpreter: '/usr/local/bin/python3.11'
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/''' because it is not a valid directory
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Library/Frameworks/Python.framework/Versions/3.11/lib/python311.zip' because it is not a valid directory
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)   Received 4 paths from interpreter
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)     /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:32.502 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.503 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.506 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Looking in bundled stubs path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib'
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.507 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed third-party path
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stubs path
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.508 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/generic.pyi (1ms)
2023-09-08 14:22:32.508 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexing.pyi [fs read 0ms] (1ms)
2023-09-08 14:22:32.508 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/indexing.pyi (1ms)
2023-09-08 14:22:32.508 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/series.pyi [fs read 1ms] (14ms)
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365) Could not import 'xarray' in file '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/series.pyi'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Looking in stubPath '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/src/stubs'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Looking in root directory of execution environment '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/py'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/py'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/py'
2023-09-08 14:22:32.508 [info] [Info  - 2:22:32 PM] (7365)   Looking in extraPath '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/Dropbox/py/pylance_checks/'''
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Finding python search paths
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/lib64'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Did not find '/Users/jonathan/py/envs/env367/Lib'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Did not find any 'site-packages' dirs. Falling back on python interpreter.
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Executing interpreter: '/usr/local/bin/python3.11'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/''' because it is not a valid directory
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Skipping '/Library/Frameworks/Python.framework/Versions/3.11/lib/python311.zip' because it is not a valid directory
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Received 4 paths from interpreter
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)     /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)     /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.509 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking in python search path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking in bundled stubs path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve stub package using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stdlib path
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/typeshed-fallback/stdlib'
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed third-party path
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Looking for typeshed stubs path
2023-09-08 14:22:32.510 [info] [Info  - 2:22:32 PM] (7365)   Typeshed path not found
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)] index packages /Users/jonathan/Dropbox/py/pylance_checks ...
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]   index execution environment /Users/jonathan/Dropbox/py/pylance_checks ...
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/__phello__/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/distutils/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/idlelib/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib2to3/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pydoc_data/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/test/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/turtledemo/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/wsgiref/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/xmlrpc/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/appnope/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/backcall/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.511 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/blackd/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/blib2to3/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/distlib/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/django/__main__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fqdn/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/core/series.pyi (7ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ipython_genutils/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/jedi/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/jupyterlab_pygments/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/matplotlib_inline/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.512 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbclassic/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook/__init__.py [skipped: no '__all__' defined] (5ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook_shim/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pathspec/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pgzero/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ptyprocess/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tinycss2/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.513 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/webencodings/__init__.py [skipped: no '__all__' defined] (1ms)
2023-09-08 14:22:32.514 [info] (7365) [IDX(2)]     indexing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/websocket/__init__.py [skipped: no '__all__' defined] (0ms)
2023-09-08 14:22:32.514 [info] (7365) [IDX(2)]   index execution environment /Users/jonathan/Dropbox/py/pylance_checks [found 3178 in 92 files] (24ms)
2023-09-08 14:22:32.514 [info] (7365) [IDX(2)] index packages /Users/jonathan/Dropbox/py/pylance_checks [found 3178 in 1 exec envs] (55ms)
2023-09-08 14:22:32.514 [info] (7365) [BG(1)]   parsing: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/indexing.pyi [fs read 0ms] (0ms)
2023-09-08 14:22:32.514 [info] (7365) [BG(1)]   binding: /Users/jonathan/.vscode/extensions/ms-python.vscode-pylance-2023.9.10/dist/bundled/stubs/pandas/_libs/indexing.pyi (0ms)
2023-09-08 14:22:32.514 [info] (7365) [BG(1)]   parsing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/typing/__init__.py [fs read 0ms] (1ms)
2023-09-08 14:22:32.514 [info] (7365) [BG(1)]   binding: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/typing/__init__.py (1ms)
2023-09-08 14:22:32.514 [info] (7365) [BG(1)]   parsing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/__init__.py [fs read 0ms] (2ms)
2023-09-08 14:22:32.514 [info] [Info  - 2:22:32 PM] (7365) Could not resolve source for '._ufunc' in file '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/__init__.py'
2023-09-08 14:22:32.514 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve relative import
2023-09-08 14:22:32.514 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing'
2023-09-08 14:22:32.514 [info] [Info  - 2:22:32 PM] (7365)   Resolved import with file '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/_ufunc.pyi'
2023-09-08 14:22:32.515 [info] [Info  - 2:22:32 PM] (7365)   Attempting to resolve using root path '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing'
2023-09-08 14:22:32.515 [info] (7365) [BG(1)]   binding: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/__init__.py (1ms)
2023-09-08 14:22:32.518 [info] (7365) [BG(1)]   parsing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/_generic_alias.py [fs read 0ms] (3ms)
2023-09-08 14:22:32.519 [info] (7365) [BG(1)]   binding: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/_typing/_generic_alias.py (1ms)
2023-09-08 14:22:32.525 [info] (7365) [BG(1)]   parsing: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/core/overrides.py [fs read 1ms] (4ms)
2023-09-08 14:22:32.525 [info] (7365) [BG(1)]   binding: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/core/overrides.py (0ms)
2023-09-08 14:22:32.543 [info] (7365) [BG(1)] getSemanticTokens full at /Users/jonathan/Dropbox/py/pylance_checks/checks.py (484ms)
2023-09-08 14:22:32.545 [info] (7365) [BG(1)] getSemanticTokens range 0:0 - 11:0 at /Users/jonathan/Dropbox/py/pylance_checks/checks.py (1ms)
2023-09-08 14:22:32.549 [info] (7365) [BG(1)] analyzing: /Users/jonathan/Dropbox/py/pylance_checks/checks.py ...
2023-09-08 14:22:32.549 [info] (7365) [BG(1)]   checking: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (4ms)
2023-09-08 14:22:32.549 [info] (7365) [BG(1)] analyzing: /Users/jonathan/Dropbox/py/pylance_checks/checks.py (4ms)
2023-09-08 14:22:32.553 [info] (7365) [BG(1)] indexing: /Users/jonathan/Dropbox/py/pylance_checks/checks.py [found 3] (0ms)
jhayesdev commented 1 year ago

I can duplicate this with many cases. No errors in my code before I updated VSCode today, now all kinds of this popping up:

Argument of type "Literal['data']" cannot be assigned to parameter "__s" of type "slice" in function "__getitem__"
  "Literal['data']" is incompatible with "slice"Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
mark-todd commented 1 year ago

I'm having a similar bug, where I try to obtain an indexed item in a list:

test = [1,2,3]
test[0]

Argument of type "Literal[0]" cannot be assigned to parameter "s" of type "slice" in function "getitem__" "Literal[0]" is incompatible with "slice"

debonte commented 9 months ago

@jonmooser, this is a bug in the pandas type stubs. Please file an issue at https://github.com/pandas-dev/pandas-stubs/issues.

Currently the _LocIndexerFrame.__getitem__ overloads that accept _IndexSliceTuple objects, only accept them as the first element of the tuple.

Changing the second overload from:

    @overload
    def __getitem__(
        self,
        idx: (
            IndexType
            | MaskType
            | Callable[[DataFrame], IndexType | MaskType | list[HashableT]]
            | list[HashableT]
            | tuple[
                IndexType
                | MaskType
                | list[HashableT]
                | slice
                | _IndexSliceTuple
                | Callable,
                MaskType | list[HashableT] | slice | Callable,
            ]
        ),
    ) -> DataFrame: ...

to

    @overload
    def __getitem__(
        self,
        idx: (
            IndexType
            | MaskType
            | Callable[[DataFrame], IndexType | MaskType | list[HashableT]]
            | list[HashableT]
            | tuple[
                IndexType
                | MaskType
                | list[HashableT]
                | slice
                | _IndexSliceTuple
                | Callable,
                MaskType | list[HashableT] | slice | Callable | _IndexSliceTuple, # Note _IndexSliceTuple added here.
            ]
        ),
    ) -> DataFrame: ...

might be the right solution. It does eliminate this error. But the folks at pandas-stubs would know for sure.