From a171ce8cb2f0b0cb0c944ddbd0c0623282570c0c Mon Sep 17 00:00:00 2001 From: Dan Redding <125183946+dangotbanned@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:40:09 +0100 Subject: [PATCH] ci(typing): fix support `pylance>=2024.9.1` (#3585) --- pyproject.toml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7dff1ab14..c9754be15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -444,14 +444,31 @@ module = [ ignore_missing_imports = true [tool.pyright] +enableExperimentalFeatures=true extraPaths=["./tools"] pythonPlatform="All" pythonVersion="3.8" +reportTypedDictNotRequiredAccess="none" +reportIncompatibleMethodOverride="none" reportUnusedExpression="none" +reportUnsupportedDunderAll="none" include=[ "./altair/**/*.py", - ".doc/*.py", - "./sphinxext/**/*.py", + "./doc/*.py", "./tests/**/*.py", "./tools/**/*.py", -] \ No newline at end of file +] +ignore=[ + "./altair/vegalite/v5/display.py", + "./altair/vegalite/v5/schema/", + "./altair/utils/core.py", + "./altair/utils/_dfi_types.py", + "./altair/_magics.py", + "./altair/jupyter/", + "./sphinxext/", + "./tests/test_jupyter_chart.py", + "./tests/utils/", + "./tests/test_magics.py", + "./tests/vegalite/v5/test_geo_interface.py", + "../../../**/Lib", # stdlib +]