-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[Experiment] Set follow_untyped_imports to true by default #19330
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
Conversation
|
Not sure I would trust primer for this change (given project selection and dependencies recorded), but is always fun to see |
|
Not that it's too difficult to set it to false in all of the projects where I am responsible for CI, but my experience with |
|
Diff from mypy_primer, showing the effect of this PR on open source code: colour (https://github.com/colour-science/colour)
- colour/plotting/common.py:51: error: Skipping analyzing "mpl_toolkits.mplot3d.axes3d": module is installed, but missing library stubs or py.typed marker [import-untyped]
- colour/plotting/volume.py:18: error: Skipping analyzing "mpl_toolkits.mplot3d.art3d": module is installed, but missing library stubs or py.typed marker [import-untyped]
- colour/plotting/volume.py:19: error: Skipping analyzing "mpl_toolkits.mplot3d.axes3d": module is installed, but missing library stubs or py.typed marker [import-untyped]
+ colour/plotting/volume.py:640: error: "Poly3DCollection" has no attribute "set_facecolors"; maybe "set_facecolor", "get_facecolor", or "_facecolors2d"? [attr-defined]
+ colour/plotting/volume.py:641: error: "Poly3DCollection" has no attribute "set_edgecolors"; maybe "set_edgecolor", "get_edgecolor", or "_edgecolors"? [attr-defined]
- colour/plotting/tests/test_common.py:15: error: Skipping analyzing "mpl_toolkits.mplot3d.axes3d": module is installed, but missing library stubs or py.typed marker [import-untyped]
ibis (https://github.com/ibis-project/ibis)
+ ibis/backends/datafusion/udfs.py:15: error: Module has no attribute "divide" [attr-defined]
+ ibis/backends/datafusion/udfs.py:39: error: Module has no attribute "millisecond" [attr-defined]
+ ibis/backends/datafusion/udfs.py:51: error: Module has no attribute "multiply" [attr-defined]
+ ibis/backends/datafusion/udfs.py:51: error: Module has no attribute "millisecond" [attr-defined]
+ ibis/backends/datafusion/udfs.py:52: error: Module has no attribute "add" [attr-defined]
+ ibis/backends/datafusion/udfs.py:52: error: Module has no attribute "microsecond" [attr-defined]
+ ibis/backends/datafusion/udfs.py:100: error: Module has no attribute "sign" [attr-defined]
+ ibis/backends/datafusion/udfs.py:104: error: Module has no attribute "minute" [attr-defined]
+ ibis/backends/datafusion/udfs.py:116: error: Module has no attribute "hour" [attr-defined]
+ ibis/backends/datafusion/udfs.py:131: error: Module has no attribute "split_pattern_regex" [attr-defined]
+ ibis/backends/tests/test_udf.py:152: error: Module has no attribute "add" [attr-defined]
+ ibis/backends/datafusion/__init__.py:190: error: Name "pa.Dataset" is not defined [name-defined]
+ ibis/backends/pyspark/tests/test_udf.py:66: error: Module has no attribute "add" [attr-defined]
+ ibis/backends/pyspark/tests/test_udf.py:66: error: Module has no attribute "binary_length" [attr-defined]
materialize (https://github.com/MaterializeInc/materialize)
- misc/python/stubs/docker/__init__.pyi:10: error: Library stubs not installed for "docker.models.containers" [import-untyped]
- misc/python/materialize/test_analytics/util/mz_sql_util.py:10: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/query_fitness/fitness_function.py:10: error: Skipping analyzing "pg8000": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/query_fitness/all_parts_essential.py:25: error: Skipping analyzing "pg8000.dbapi": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/query_fitness/pick.py:13: error: Skipping analyzing "pg8000": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/query_fitness/pick.py:14: error: Skipping analyzing "sqlparse": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/optbench/sql.py:18: error: Skipping analyzing "sqlparse": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/data_ingest/data_type.py:17: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cli/run.py:29: error: Skipping analyzing "pg8000.exceptions": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cli/run.py:29: error: Skipping analyzing "pg8000": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cli/run.py:30: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzexplore/common.py:18: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzexplore/sql.py:19: error: Skipping analyzing "pg8000": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzexplore/sql.py:20: error: Skipping analyzing "sqlparse": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzexplore/sql.py:21: error: Skipping analyzing "pg8000.exceptions": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzexplore/sql.py:22: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/data_ingest/field.py:13: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/version_list.py:17: error: Skipping analyzing "frontmatter": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/mzcompose/composition.py:42: error: Skipping analyzing "sqlparse": module is installed, but missing library stubs or py.typed marker [import-untyped]
+ misc/python/materialize/version_list.py:514: error: Argument 1 to "load" has incompatible type "Path"; expected "str | IOBase" [arg-type]
+ misc/python/materialize/version_list.py:520: error: Unsupported operand types for + ("object" and "int") [operator]
+ misc/python/materialize/query_fitness/pick.py:22: error: Missing positional argument "user" in call to "connect" [call-arg]
- misc/python/materialize/cli/ci_coverage_pr_report.py:17: error: Skipping analyzing "junit_xml": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/benches/avro_ingest.py:18: error: Library stubs not installed for "docker" [import-untyped]
- misc/python/materialize/benches/avro_ingest.py:22: error: Library stubs not installed for "docker.models.containers" [import-untyped]
- misc/python/materialize/benches/avro_ingest.py:22: note: Hint: "python3 -m pip install types-docker"
- misc/python/materialize/benches/avro_ingest.py:22: note: (or run "mypy --install-types" to install all missing stub packages)
- misc/python/materialize/benches/avro_ingest.py:22: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- misc/python/materialize/cloudtest/k8s/api/k8s_service.py:14: error: Skipping analyzing "pg8000": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cloudtest/k8s/api/k8s_service.py:16: error: Skipping analyzing "sqlparse": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cli/mzcompose.py:37: error: Skipping analyzing "junit_xml": module is installed, but missing library stubs or py.typed marker [import-untyped]
+ misc/python/materialize/feature_benchmark/scenarios/optbench.py:15: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/feature_benchmark/scenarios/benchmark_main.py:15: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/data_ingest/executor.py:15: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/data_ingest/executor.py:19: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/data_ingest/executor.py:20: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/data_ingest/executor.py:21: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/data_ingest/executor.py:22: error: Unused "type: ignore" comment [unused-ignore]
- misc/python/materialize/data_ingest/executor.py:26: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/cloudtest/app/materialize_application.py:16: error: Skipping analyzing "pg8000.exceptions": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/parallel_workload/database.py:16: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
- misc/python/materialize/parallel_workload/action.py:22: error: Skipping analyzing "pg8000.native": module is installed, but missing library stubs or py.typed marker [import-untyped]
+ misc/python/materialize/checks/all_checks/identifiers.py:13: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/feature_benchmark/termination.py:13: error: Unused "type: ignore" comment [unused-ignore]
+ misc/python/materialize/feature_benchmark/termination.py:38: error: Module has no attribute "norm" [attr-defined]
+ misc/python/materialize/feature_benchmark/termination.py:63: error: Module has no attribute "norm" [attr-defined]
strawberry (https://github.com/strawberry-graphql/strawberry)
- strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil.parser" [import-untyped]
- strawberry/schema/types/base_scalars.py:7: note: Hint: "python3 -m pip install types-python-dateutil"
- strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil" [import-untyped]
pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/chromium_downloader.py:77: error: Call to untyped function "PoolManager" in typed context [no-untyped-call]
+ pyppeteer/__init__.py:22: error: Call to untyped function "AppDirs" in typed context [no-untyped-call]
arviz (https://github.com/arviz-devs/arviz)
- arviz/plots/backends/__init__.py:6: error: Library stubs not installed for "pandas" [import-untyped]
- arviz/plots/backends/__init__.py:6: note: Hint: "python3 -m pip install pandas-stubs"
- arviz/plots/backends/__init__.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
+ arviz/stats/stats_utils.py:506: error: Cannot override final attribute "copy" (previously declared in base class "NDFrame") [misc]
- arviz/stats/stats_utils.py:9: error: Library stubs not installed for "pandas" [import-untyped]
- arviz/stats/stats.py:10: error: Library stubs not installed for "pandas" [import-untyped]
- arviz/stats/diagnostics.py:8: error: Library stubs not installed for "pandas" [import-untyped]
+ arviz/stats/stats.py:1551: error: Incompatible types in assignment (expression has type "Dataset", variable has type "DataFrame") [assignment]
- arviz/tests/base_tests/test_diagnostics.py:8: error: Library stubs not installed for "pandas" [import-untyped]
- arviz/tests/base_tests/test_plots_matplotlib.py:13: error: Library stubs not installed for "pandas" [import-untyped]
- arviz/tests/base_tests/test_plots_bokeh.py:7: error: Library stubs not installed for "pandas" [import-untyped]
schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/tests/memory-leak-check.py:6: error: Unused "type: ignore" comment [unused-ignore]
+ schema_salad/tests/memory-leak-check.py:10:14: error: Call to untyped function "growth" in typed context [no-untyped-call]
+ schema_salad/tests/memory-leak-check.py:12:1: error: Call to untyped function "show_growth" in typed context [no-untyped-call]
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
+ tests/conftest.py:87: error: Call to untyped function "cli_run" in typed context [no-untyped-call]
imagehash (https://github.com/JohannesBuchner/imagehash)
- imagehash/__init__.py:361: error: Skipping analyzing "pywt": module is installed, but missing library stubs or py.typed marker [import-untyped]
- imagehash/__init__.py:361: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/cluster/test_vq.pyi:17: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[float64]]" [assert-type]
- tests/cluster/test_vq.pyi:17: error: Module has no attribute "whiten" [attr-defined]
- tests/cluster/test_vq.pyi:18: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[float64]]" [assert-type]
- tests/cluster/test_vq.pyi:18: error: Module has no attribute "whiten" [attr-defined]
- tests/cluster/test_vq.pyi:19: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[complex128]]" [assert-type]
- tests/cluster/test_vq.pyi:19: error: Module has no attribute "whiten" [attr-defined]
- tests/cluster/test_vq.pyi:22: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:22: error: Module has no attribute "vq" [attr-defined]
- tests/cluster/test_vq.pyi:22: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:23: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit]]], ndarray[tuple[int], dtype[floating[_32Bit]]]]" [assert-type]
- tests/cluster/test_vq.pyi:23: error: Module has no attribute "vq" [attr-defined]
- tests/cluster/test_vq.pyi:24: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit]]], ndarray[tuple[int], dtype[float64]]]" [assert-type]
- tests/cluster/test_vq.pyi:24: error: Module has no attribute "vq" [attr-defined]
- tests/cluster/test_vq.pyi:25: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit]]], ndarray[tuple[int], dtype[floating[Any]]]]" [assert-type]
- tests/cluster/test_vq.pyi:25: error: Module has no attribute "vq" [attr-defined]
- tests/cluster/test_vq.pyi:26: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:26: error: Module has no attribute "vq" [attr-defined]
- tests/cluster/test_vq.pyi:26: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:29: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit | _64Bit]]], ndarray[tuple[int], dtype[float64]]]" [assert-type]
- tests/cluster/test_vq.pyi:29: error: Module has no attribute "py_vq" [attr-defined]
- tests/cluster/test_vq.pyi:30: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit | _64Bit]]], ndarray[tuple[int], dtype[float64]]]" [assert-type]
- tests/cluster/test_vq.pyi:30: error: Module has no attribute "py_vq" [attr-defined]
- tests/cluster/test_vq.pyi:31: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit | _64Bit]]], ndarray[tuple[int], dtype[float64]]]" [assert-type]
- tests/cluster/test_vq.pyi:31: error: Module has no attribute "py_vq" [attr-defined]
- tests/cluster/test_vq.pyi:32: error: Expression is of type "Any", not "tuple[ndarray[tuple[int], dtype[signedinteger[_32Bit | _64Bit]]], ndarray[tuple[int], dtype[float64]]]" [assert-type]
- tests/cluster/test_vq.pyi:32: error: Module has no attribute "py_vq" [attr-defined]
- tests/cluster/test_vq.pyi:33: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:33: error: Module has no attribute "py_vq" [attr-defined]
- tests/cluster/test_vq.pyi:33: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:36: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:36: error: Module has no attribute "kmeans" [attr-defined]
- tests/cluster/test_vq.pyi:36: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:37: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[floating[_32Bit]]], floating[_32Bit]]" [assert-type]
- tests/cluster/test_vq.pyi:37: error: Module has no attribute "kmeans" [attr-defined]
- tests/cluster/test_vq.pyi:38: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[float64]], float64]" [assert-type]
- tests/cluster/test_vq.pyi:38: error: Module has no attribute "kmeans" [attr-defined]
- tests/cluster/test_vq.pyi:39: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[floating[Any]]], floating[Any]]" [assert-type]
- tests/cluster/test_vq.pyi:39: error: Module has no attribute "kmeans" [attr-defined]
- tests/cluster/test_vq.pyi:40: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:40: error: Module has no attribute "kmeans" [attr-defined]
- tests/cluster/test_vq.pyi:40: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:43: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:43: error: Module has no attribute "kmeans2" [attr-defined]
- tests/cluster/test_vq.pyi:43: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/cluster/test_vq.pyi:44: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[floating[_32Bit]]], ndarray[tuple[int], dtype[signedinteger[_32Bit]]]]" [assert-type]
- tests/cluster/test_vq.pyi:44: error: Module has no attribute "kmeans2" [attr-defined]
- tests/cluster/test_vq.pyi:45: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[float64]], ndarray[tuple[int], dtype[signedinteger[_32Bit]]]]" [assert-type]
- tests/cluster/test_vq.pyi:45: error: Module has no attribute "kmeans2" [attr-defined]
- tests/cluster/test_vq.pyi:46: error: Expression is of type "Any", not "tuple[ndarray[tuple[int, int], dtype[floating[Any]]], ndarray[tuple[int], dtype[signedinteger[_32Bit]]]]" [assert-type]
- tests/cluster/test_vq.pyi:46: error: Module has no attribute "kmeans2" [attr-defined]
- tests/cluster/test_vq.pyi:47: error: Unused "type: ignore" comment [unused-ignore]
- tests/cluster/test_vq.pyi:47: error: Module has no attribute "kmeans2" [attr-defined]
- tests/cluster/test_vq.pyi:47: note: Error code "attr-defined" not covered by "type: ignore" comment
- tests/misc/test_submodules_empty.pyi:2: error: Unused "type: ignore" comment [unused-ignore]
- tests/misc/test_submodules_empty.pyi:2: error: Library stubs not installed for "scipy.misc._common" [import-untyped]
- tests/misc/test_submodules_empty.pyi:2: note: Error code "import-untyped" not covered by "type: ignore" comment
- tests/misc/test_submodules_empty.pyi:2: note: Hint: "python3 -m pip install scipy-stubs"
- tests/misc/test_submodules_empty.pyi:2: note: (or run "mypy --install-types" to install all missing stub packages)
- tests/misc/test_submodules_empty.pyi:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/fft/test_pocketfft_helper.pyi:7: error: Module has no attribute "set_workers" [attr-defined]
- tests/fft/test_pocketfft_helper.pyi:8: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_pocketfft_helper.pyi:10: error: Expression is of type "Any", not "int" [assert-type]
- tests/fft/test_pocketfft_helper.pyi:10: error: Module has no attribute "get_workers" [attr-defined]
- tests/fft/test_fftlog.pyi:15: error: Expression is of type "Any", not "float64" [assert-type]
- tests/fft/test_fftlog.pyi:15: error: Module has no attribute "fhtoffset" [attr-defined]
- tests/fft/test_fftlog.pyi:18: error: Expression is of type "Any", not "ndarray[tuple[int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:18: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:19: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[floating[_32Bit]]]" [assert-type]
- tests/fft/test_fftlog.pyi:19: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:20: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[floating[_64Bit | _96Bit | _128Bit]]]" [assert-type]
- tests/fft/test_fftlog.pyi:20: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:21: error: Expression is of type "Any", not "ndarray[tuple[int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:21: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:22: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:22: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:23: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:23: error: Module has no attribute "fht" [attr-defined]
- tests/fft/test_fftlog.pyi:26: error: Expression is of type "Any", not "ndarray[tuple[int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:26: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_fftlog.pyi:27: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[floating[_32Bit]]]" [assert-type]
- tests/fft/test_fftlog.pyi:27: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_fftlog.pyi:28: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[floating[_64Bit | _96Bit | _128Bit]]]" [assert-type]
- tests/fft/test_fftlog.pyi:28: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_fftlog.pyi:29: error: Expression is of type "Any", not "ndarray[tuple[int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:29: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_fftlog.pyi:30: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:30: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_fftlog.pyi:31: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[float64]]" [assert-type]
- tests/fft/test_fftlog.pyi:31: error: Module has no attribute "ifht" [attr-defined]
- tests/fft/test_backend.pyi:13: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:13: error: Module has no attribute "set_global_backend" [attr-defined]
- tests/fft/test_backend.pyi:14: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:14: error: Module has no attribute "set_global_backend" [attr-defined]
- tests/fft/test_backend.pyi:15: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:15: error: Module has no attribute "set_global_backend" [attr-defined]
- tests/fft/test_backend.pyi:16: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:16: error: Module has no attribute "set_global_backend" [attr-defined]
- tests/fft/test_backend.pyi:17: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:17: error: Module has no attribute "set_global_backend" [attr-defined]
- tests/fft/test_backend.pyi:20: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:20: error: Module has no attribute "register_backend" [attr-defined]
- tests/fft/test_backend.pyi:21: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:21: error: Module has no attribute "register_backend" [attr-defined]
- tests/fft/test_backend.pyi:24: error: Module has no attribute "set_backend" [attr-defined]
- tests/fft/test_backend.pyi:25: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:26: error: Module has no attribute "set_backend" [attr-defined]
- tests/fft/test_backend.pyi:27: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:28: error: Module has no attribute "set_backend" [attr-defined]
- tests/fft/test_backend.pyi:29: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:30: error: Module has no attribute "set_backend" [attr-defined]
- tests/fft/test_backend.pyi:31: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:34: error: Module has no attribute "skip_backend" [attr-defined]
- tests/fft/test_backend.pyi:35: error: Expression is of type "Any", not "None" [assert-type]
- tests/fft/test_backend.pyi:36: error: Module has no attribute "skip_backend" [attr-defined]
- tests/fft/test_backend.pyi:37: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:6: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:6: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:9: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:9: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:9: error: Module has no attribute "ascent" [attr-defined]
- tests/datasets/test_utils.pyi:10: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:10: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:10: error: Module has no attribute "ascent" [attr-defined]
- tests/datasets/test_utils.pyi:11: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:11: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:11: error: Module has no attribute "ascent" [attr-defined]
- tests/datasets/test_utils.pyi:14: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:14: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:14: error: Module has no attribute "electrocardiogram" [attr-defined]
- tests/datasets/test_utils.pyi:15: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:15: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:15: error: Module has no attribute "electrocardiogram" [attr-defined]
- tests/datasets/test_utils.pyi:16: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:16: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:16: error: Module has no attribute "electrocardiogram" [attr-defined]
- tests/datasets/test_utils.pyi:19: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:19: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:19: error: Module has no attribute "face" [attr-defined]
- tests/datasets/test_utils.pyi:20: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:20: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:20: error: Module has no attribute "face" [attr-defined]
- tests/datasets/test_utils.pyi:21: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:21: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:21: error: Module has no attribute "face" [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "ascent" [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "electrocardiogram" [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "face" [attr-defined]
- tests/datasets/test_utils.pyi:25: error: Expression is of type "Any", not "None" [assert-type]
- tests/datasets/test_utils.pyi:25: error: Module has no attribute "clear_cache" [attr-defined]
- tests/datasets/test_utils.pyi:25: error: Module has no attribute "ascent" [attr-defined]
- tests/datasets/test_utils.pyi:25: error: Module has no attribute "electrocardiogram" [attr-defined]
- tests/datasets/test_utils.pyi:25: error: Module has no attribute "face" [attr-defined]
- tests/datasets/test_fetchers.pyi:7: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[unsignedinteger[_8Bit]]]" [assert-type]
- tests/datasets/test_fetchers.pyi:7: error: Module has no attribute "ascent" [attr-defined]
... (truncated 79 lines) ...
cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/singularity.py: note: In member "get_image" of class "SingularityCommandLineJob":
+ cwltool/singularity.py:209:35: error: Call to untyped function "SingularityWriter" in typed context [no-untyped-call]
+ cwltool/singularity.py:209:35: error: Call to untyped function "convert" in typed context [no-untyped-call]
+ cwltool/singularity.py:209:53: error: Call to untyped function "DockerParser" in typed context [no-untyped-call]
+ cwltool/singularity.py:209:53: error: Call to untyped function "parse" in typed context [no-untyped-call]
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ pandas-stubs/_libs/tslibs/offsets.pyi:15: error: Module "dateutil.relativedelta" does not explicitly export attribute "weekday" [attr-defined]
- pandas-stubs/_libs/tslibs/offsets.pyi:15: error: Library stubs not installed for "dateutil.relativedelta" [import-untyped]
- pandas-stubs/_libs/tslibs/offsets.pyi:15: note: Hint: "python3 -m pip install types-python-dateutil"
- pandas-stubs/_libs/tslibs/offsets.pyi:15: note: (or run "mypy --install-types" to install all missing stub packages)
- pandas-stubs/_libs/tslibs/offsets.pyi:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_timefuncs.py:10: error: Library stubs not installed for "dateutil.relativedelta" [import-untyped]
- tests/test_scalars.py:12: error: Library stubs not installed for "dateutil.tz" [import-untyped]
- tests/test_scalars.py:12: error: Library stubs not installed for "dateutil" [import-untyped]
+ pandas-stubs/core/arrays/arrow/dtype.pyi:8: error: Name "pa.DataType" is not defined [name-defined]
+ pandas-stubs/core/arrays/arrow/dtype.pyi:9: error: Name "pa.DataType" is not defined [name-defined]
+ tests/test_windowing.py:417: error: Expression is of type "Any", not "DataFrame" [assert-type]
+ tests/test_windowing.py:417: error: No overload variant of "rolling" of "DataFrame" matches argument types "FixedForwardWindowIndexer", "int" [call-overload]
+ tests/test_windowing.py:417: note: Possible overload variants:
+ tests/test_windowing.py:417: note: def rolling(self, window: int | str | timedelta | BaseOffset | BaseIndexer, min_periods: int | None = ..., center: bool = ..., on: Hashable | None = ..., axis: Literal['index', 0] = ..., closed: Literal['left', 'right', 'both', 'neither'] | None = ..., step: int | None = ..., method: Literal['single', 'table'] = ..., *, win_type: str) -> Window[DataFrame]
+ tests/test_windowing.py:417: note: def rolling(self, window: int | str | timedelta | BaseOffset | BaseIndexer, min_periods: int | None = ..., center: bool = ..., on: Hashable | None = ..., axis: Literal['index', 0] = ..., closed: Literal['left', 'right', 'both', 'neither'] | None = ..., step: int | None = ..., method: Literal['single', 'table'] = ..., *, win_type: None = ...) -> Rolling[DataFrame]
+ tests/test_windowing.py:422: error: Expression is of type "Any", not "Series[Any]" [assert-type]
+ tests/test_windowing.py:422: error: No overload variant of "rolling" of "Series" matches argument types "FixedForwardWindowIndexer", "int" [call-overload]
+ tests/test_windowing.py:422: note: Possible overload variants:
+ tests/test_windowing.py:422: note: def rolling(self, window: int | str | timedelta | BaseOffset | BaseIndexer, min_periods: int | None = ..., center: bool = ..., on: str | None = ..., closed: Literal['left', 'right', 'both', 'neither'] | None = ..., step: int | None = ..., method: Literal['single', 'table'] = ..., *, win_type: str) -> Window[Series[Any]]
+ tests/test_windowing.py:422: note: def rolling(self, window: int | str | timedelta | BaseOffset | BaseIndexer, min_periods: int | None = ..., center: bool = ..., on: str | None = ..., closed: Literal['left', 'right', 'both', 'neither'] | None = ..., step: int | None = ..., method: Literal['single', 'table'] = ..., *, win_type: None = ...) -> Rolling[Series[Any]]
+ tests/test_pandas.py:614: error: Module "pyarrow" does not explicitly export attribute "timestamp" [attr-defined]
+ tests/test_dtypes.py:151: error: Module "pyarrow" does not explicitly export attribute "int64" [attr-defined]
+ tests/test_dtypes.py:153: error: Name "pa.DataType" is not defined [name-defined]
+ tests/test_dtypes.py:153: error: Module "pyarrow" does not explicitly export attribute "DataType" [attr-defined]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/settings/_core.py:42: error: Argument "source" to "__init__" of "Env" has incompatible type "ChainMap[str, str]"; expected "dict[str, str] | None" [arg-type]
+ ddtrace/settings/_core.py:48: error: Item "DerivedVariable[Any]" of "EnvVariable[Any] | DerivedVariable[Any]" has no attribute "private" [union-attr]
+ ddtrace/settings/_core.py:51: error: Item "DerivedVariable[Any]" of "EnvVariable[Any] | DerivedVariable[Any]" has no attribute "full_name" [union-attr]
+ ddtrace/settings/_core.py:66: error: Item "DerivedVariable[Any]" of "EnvVariable[Any] | DerivedVariable[Any]" has no attribute "default" [union-attr]
+ ddtrace/settings/third_party.py:7: error: Need type annotation for "excludes" [var-annotated]
+ ddtrace/settings/third_party.py:14: error: Need type annotation for "includes" [var-annotated]
+ ddtrace/settings/symbol_db.py:17: error: Need type annotation for "includes" [var-annotated]
+ ddtrace/settings/symbol_db.py:25: error: "Env" has no attribute "includes"; maybe "include"? [attr-defined]
+ ddtrace/settings/exception_replay.py:13: error: List item 0 has incompatible type "tuple[str, None, str]"; expected "tuple[str, str, str]" [list-item]
+ ddtrace/settings/errortracking.py:20: error: Need type annotation for "_modules_to_report" [var-annotated]
+ ddtrace/settings/errortracking.py:20: error: Argument "parser" to "v" of "Env" has incompatible type "Callable[[str | None], list[str]]"; expected "Callable[[str], list[Never]] | None" [arg-type]
+ ddtrace/settings/errortracking.py:44: error: Incompatible types in assignment (expression has type "EnvVariable[list[Any]]", variable has type "list[str]") [assignment]
+ ddtrace/settings/_agent.py:42: error: Incompatible types in assignment (expression has type "str", variable has type "EnvVariable[None]") [assignment]
+ ddtrace/settings/_agent.py:48: error: Incompatible return value type (got "EnvVariable[None]", expected "str") [return-value]
+ ddtrace/settings/_agent.py:62: error: Incompatible types in assignment (expression has type "str", variable has type "EnvVariable[None]") [assignment]
+ ddtrace/settings/_agent.py:67: error: Incompatible return value type (got "EnvVariable[None]", expected "str") [return-value]
+ ddtrace/settings/_agent.py:153: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[AgentConfig], str]"; expected "Callable[[Env], str]" [arg-type]
+ ddtrace/settings/_agent.py:155: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[AgentConfig], str]"; expected "Callable[[Env], str]" [arg-type]
+ ddtrace/profiling/utils.py:19: error: Incompatible types in assignment (expression has type "Any | DerivedVariable[str]", variable has type "str") [assignment]
+ ddtrace/internal/metrics.py:33: error: Argument 1 to "get_dogstatsd_client" has incompatible type "str | DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/gitmetadata.py:49: error: Argument 1 to "parse_tags_str" has incompatible type "EnvVariable[str]"; expected "str | None" [arg-type]
+ ddtrace/internal/gitmetadata.py:51: error: Incompatible types in assignment (expression has type "str", variable has type "EnvVariable[str]") [assignment]
+ ddtrace/internal/gitmetadata.py:53: error: Incompatible types in assignment (expression has type "str", variable has type "EnvVariable[str]") [assignment]
+ ddtrace/internal/gitmetadata.py:54: error: Argument 1 to "_filter_sensitive_info" has incompatible type "EnvVariable[str]"; expected "str | None" [arg-type]
+ ddtrace/internal/gitmetadata.py:56: error: Incompatible return value type (got "tuple[str, EnvVariable[str], EnvVariable[str]]", expected "tuple[str, str, str]") [return-value]
+ ddtrace/internal/gitmetadata.py:57: error: Incompatible return value type (got "tuple[str, EnvVariable[str], EnvVariable[str]]", expected "tuple[str, str, str]") [return-value]
+ ddtrace/internal/packages.py:214: error: Unsupported operand types for | ("set[str]" and "EnvVariable[set[Any]]") [operator]
+ ddtrace/internal/packages.py:215: error: Unsupported operand types for - ("set[str]" and "EnvVariable[set[Any]]") [operator]
+ ddtrace/internal/telemetry/writer.py:70: error: Argument 1 to "get_host" of "_TelemetryClient" has incompatible type "EnvVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/telemetry/writer.py:82: error: Incompatible types in assignment (expression has type "EnvVariable[None]", target has type "str") [assignment]
+ ddtrace/internal/telemetry/writer.py:130: error: Incompatible return value type (got "DerivedVariable[str]", expected "str") [return-value]
+ ddtrace/internal/telemetry/writer.py:153: error: No overload variant of "min" matches argument types "EnvVariable[float]", "int" [call-overload]
+ ddtrace/internal/telemetry/writer.py:153: note: Possible overload variants:
+ ddtrace/internal/telemetry/writer.py:153: note: def [SupportsRichComparisonT: SupportsDunderLT[Any] | SupportsDunderGT[Any]] min(SupportsRichComparisonT, SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = ...) -> SupportsRichComparisonT
+ ddtrace/internal/telemetry/writer.py:153: note: def [_T] min(_T, _T, /, *_args: _T, key: Callable[[_T], SupportsDunderLT[Any] | SupportsDunderGT[Any]]) -> _T
+ ddtrace/internal/telemetry/writer.py:153: note: def [SupportsRichComparisonT: SupportsDunderLT[Any] | SupportsDunderGT[Any]] min(Iterable[SupportsRichComparisonT], /, *, key: None = ...) -> SupportsRichComparisonT
+ ddtrace/internal/telemetry/writer.py:153: note: def [_T] min(Iterable[_T], /, *, key: Callable[[_T], SupportsDunderLT[Any] | SupportsDunderGT[Any]]) -> _T
+ ddtrace/internal/telemetry/writer.py:153: note: def [SupportsRichComparisonT: SupportsDunderLT[Any] | SupportsDunderGT[Any], _T] min(Iterable[SupportsRichComparisonT], /, *, key: None = ..., default: _T) -> SupportsRichComparisonT | _T
+ ddtrace/internal/telemetry/writer.py:153: note: def [_T1, _T2] min(Iterable[_T1], /, *, key: Callable[[_T1], SupportsDunderLT[Any] | SupportsDunderGT[Any]], default: _T2) -> _T1 | _T2
+ ddtrace/internal/telemetry/writer.py:158: error: Unsupported operand types for // ("EnvVariable[float]" and "float") [operator]
+ ddtrace/internal/telemetry/writer.py:187: error: Incompatible types in assignment (expression has type "EnvVariable[bool] | bool", variable has type "bool | None") [assignment]
+ ddtrace/internal/telemetry/writer.py:191: error: Incompatible types in assignment (expression has type "bool", variable has type "EnvVariable[bool]") [assignment]
+ ddtrace/internal/telemetry/writer.py:192: error: Argument 1 to "_TelemetryClient" has incompatible type "bool | None"; expected "bool" [arg-type]
+ ddtrace/internal/telemetry/writer.py:238: error: Incompatible types in assignment (expression has type "bool", variable has type "EnvVariable[bool]") [assignment]
+ ddtrace/internal/telemetry/writer.py:270: error: Argument 1 to "get_application" has incompatible type "EnvVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/telemetry/writer.py:270: error: Argument 2 to "get_application" has incompatible type "EnvVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/telemetry/writer.py:270: error: Argument 3 to "get_application" has incompatible type "EnvVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/telemetry/__init__.py:119: error: Item "DerivedVariable[Any]" of "EnvVariable[Any] | DerivedVariable[Any]" has no attribute "private" [union-attr]
+ ddtrace/internal/telemetry/__init__.py:122: error: Item "DerivedVariable[Any]" of "EnvVariable[Any] | DerivedVariable[Any]" has no attribute "full_name" [union-attr]
+ ddtrace/settings/asm.py:64: error: Argument 1 to "var" of "Env" has incompatible type "<typing special form>"; expected "type[None]" [arg-type]
+ ddtrace/settings/asm.py:104: error: Argument "help_type" to "var" of "Env" has incompatible type "type[float]"; expected "str | None" [arg-type]
+ ddtrace/settings/asm.py:277: error: Incompatible return value type (got "Literal[False] | EnvVariable[bool]", expected "bool") [return-value]
+ ddtrace/settings/asm.py:290: error: Incompatible return value type (got "EnvVariable[str]", expected "str") [return-value]
+ ddtrace/appsec/_iast/secure_marks/configuration.py:199: error: Argument 1 to "parse_security_controls_config" has incompatible type "EnvVariable[str]"; expected "str" [arg-type]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:47: error: Unsupported operand types for >= ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:62: error: Unsupported operand types for < ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:62: error: Unsupported operand types for > ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:63: error: Unsupported left operand type for * ("EnvVariable[int]") [operator]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:64: error: Unsupported operand types for - ("EnvVariable[int]" and "int") [operator]
+ ddtrace/appsec/_iast/_overhead_control_engine.py:19: error: Argument 1 to "float" has incompatible type "EnvVariable[float]"; expected "str | Buffer | SupportsFloat | SupportsIndex" [arg-type]
+ ddtrace/appsec/_iast/_overhead_control_engine.py:40: error: Unsupported operand types for >= ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_iast/_overhead_control_engine.py:49: error: Unsupported operand types for >= ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_iast/_overhead_control_engine.py:52: error: Unsupported operand types for - ("EnvVariable[int]" and "int") [operator]
+ ddtrace/appsec/_iast/_overhead_control_engine.py:52: error: Incompatible types in assignment (expression has type "int", variable has type "EnvVariable[int]") [assignment]
+ ddtrace/internal/writer/writer.py:161: error: Incompatible types in assignment (expression has type "EnvVariable[float]", variable has type "float | None") [assignment]
+ ddtrace/internal/writer/writer.py:241: error: Argument 2 to "get_connection" has incompatible type "float | None"; expected "float" [arg-type]
+ ddtrace/internal/writer/writer.py:469: error: Incompatible types in assignment (expression has type "EnvVariable[float]", variable has type "float | None") [assignment]
+ ddtrace/_trace/tracer.py:352: error: Incompatible types in assignment (expression has type "bool", variable has type "EnvVariable[bool]") [assignment]
+ ddtrace/_trace/tracer.py:358: error: Incompatible types in assignment (expression has type "bool", variable has type "EnvVariable[bool]") [assignment]
+ ddtrace/_trace/processor/__init__.py:290: error: Argument 1 to "verify_url" has incompatible type "DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/_trace/processor/__init__.py:292: error: Argument "agent_url" to "AgentWriter" has incompatible type "DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/_trace/processor/__init__.py:293: error: Argument 1 to "get_dogstatsd_client" has incompatible type "DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/runtime/runtime_metrics.py:93: error: Argument 1 to "get_dogstatsd_client" has incompatible type "Any | DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/processor/stats.py:194: error: Argument 1 to "get_connection" has incompatible type "str | DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/datastreams/processor.py:274: error: Argument 1 to "get_connection" has incompatible type "str | DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/ci_visibility/git_client.py:97: error: Value of type variable "AnyStr" of "urljoin" cannot be "str | DerivedVariable[str] | Any" [type-var]
+ ddtrace/internal/ci_visibility/git_client.py:243: error: Incompatible types in assignment (expression has type "bool", variable has type "EnvVariable[bool]") [assignment]
+ ddtrace/internal/ci_visibility/writer.py:124: error: Incompatible types in assignment (expression has type "str | DerivedVariable[str]", variable has type "str") [assignment]
+ ddtrace/internal/remoteconfig/client.py:51: error: Incompatible return value type (got "EnvVariable[None]", expected "bool") [return-value]
+ ddtrace/internal/remoteconfig/client.py:63: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[RemoteConfigClientConfig], bool]"; expected "Callable[[Env], bool]" [arg-type]
+ ddtrace/internal/remoteconfig/client.py:309: error: Argument 1 to "get_connection" has incompatible type "DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/remoteconfig/client.py:309: error: Argument "timeout" to "get_connection" has incompatible type "EnvVariable[float]"; expected "float" [arg-type]
+ ddtrace/appsec/_processor.py:67: error: Incompatible return value type (got "EnvVariable[None] | str", expected "str") [return-value]
+ ddtrace/appsec/_processor.py:90: error: "EnvVariable[str]" has no attribute "encode" [attr-defined]
+ ddtrace/appsec/_processor.py:91: error: "EnvVariable[str]" has no attribute "encode" [attr-defined]
+ ddtrace/appsec/_processor.py:276: error: Argument "timeout_ms" to "run" of "WAF" has incompatible type "EnvVariable[float]"; expected "float" [arg-type]
+ ddtrace/appsec/_iast/sampling/vulnerability_detection.py:45: error: Unsupported operand types for >= ("int" and "EnvVariable[int]") [operator]
+ ddtrace/appsec/_api_security/api_manager.py:123: error: Unsupported operand types for - ("float" and "EnvVariable[float]") [operator]
+ ddtrace/internal/ci_visibility/recorder.py:399: error: Argument "intake_url" to "CIVisibilityWriter" has incompatible type "DerivedVariable[str] | str"; expected "str" [arg-type]
+ ddtrace/settings/dynamic_instrumentation.py:50: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[Env], DerivedVariable[str]]"; expected "Callable[[Env], str]" [arg-type]
+ ddtrace/settings/dynamic_instrumentation.py:50: error: Incompatible return value type (got "DerivedVariable[str]", expected "str") [return-value]
+ ddtrace/settings/dynamic_instrumentation.py:55: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[DDConfig], str]"; expected "Callable[[Env], str]" [arg-type]
+ ddtrace/settings/dynamic_instrumentation.py:95: error: List item 0 has incompatible type "tuple[str, None, str]"; expected "tuple[str, str, str]" [list-item]
+ ddtrace/settings/dynamic_instrumentation.py:106: error: Need type annotation for "redacted_identifiers" [var-annotated]
+ ddtrace/settings/dynamic_instrumentation.py:115: error: Need type annotation for "redacted_types" [var-annotated]
+ ddtrace/settings/dynamic_instrumentation.py:126: error: Argument 1 to "d" of "Env" has incompatible type "<typing special form>"; expected "type[Pattern[str]] | type[None]" [arg-type]
+ ddtrace/settings/dynamic_instrumentation.py:127: error: "Env" has no attribute "redacted_types" [attr-defined]
+ ddtrace/settings/dynamic_instrumentation.py:128: error: "Env" has no attribute "redacted_types" [attr-defined]
+ ddtrace/settings/dynamic_instrumentation.py:132: error: Need type annotation for "redaction_excluded_identifiers" [var-annotated]
+ ddtrace/settings/crashtracker.py:48: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[CrashtrackingConfig], bool]"; expected "Callable[[Env], bool]" [arg-type]
+ ddtrace/settings/crashtracker.py:101: error: Argument 1 to "d" of "Env" has incompatible type "<typing special form>"; expected "type[str] | type[None]" [arg-type]
+ ddtrace/settings/crashtracker.py:101: error: Argument 2 to "d" of "Env" has incompatible type "Callable[[CrashtrackingConfig], str | None]"; expected "Callable[[Env], str | None]" [arg-type]
+ ddtrace/settings/crashtracker.py:103: error: Need type annotation for "tags" [var-annotated]
+ ddtrace/settings/crashtracker.py:106: error: Argument "parser" to "v" of "Env" has incompatible type "Callable[[str | None], dict[str, str]]"; expected "Callable[[str], dict[Never, Never]] | None" [arg-type]
+ ddtrace/internal/symbol_db/symbols.py:509: error: Argument 1 to "connector" has incompatible type "DerivedVariable[str]"; expected "str" [arg-type]
+ ddtrace/internal/symbol_db/symbols.py:524: error: "DerivedVariable[Pattern[Any]]" has no attribute "match" [attr-defined]
... (truncated 9 lines) ...``` |
|
Yeah the world probably isn't quite ready for this. Interesting to see the output, though. |
|
I find it interesting that this issue only affects a few projects in Primer. To me, it feels unintuitive that some imports result in Any, even when the target module has type annotations. Personally, I’d prefer if --follow-untyped-imports were the default in Mypy 2.0. |
|
The reason I started looking into it was that I started a little project at work to make sure we added py.typed files more consistently, and someone commented that it was a bit of a slog. Which got me thinking: What if we stopped requiring py.typed for having type checkers see the type of imported packages? I think the output here shows we're still some way away from when that becomes safe, though. I think the mypy-primer projects are likely to show less impact than most real-world code because they tend to be well-typed libraries with well-curated dependency lists. |
No description provided.