Skip to content

Don't report function metadata as partially unknown - #5866

Open
1-DARK wants to merge 1 commit into
pyrefly-org:mainfrom
1-DARK:fix-5853-cached-property-partially-unknown
Open

1-DARK wants to merge 1 commit into
pyrefly-org:mainfrom
1-DARK:fix-5853-cached-property-partially-unknown

Conversation

@1-DARK

@1-DARK 1-DARK commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #5853.

A decorator under @cached_property received a function whose metadata records the descriptor class cached_property[Unknown]. contains_implicit_any walked that metadata, so the argument was reported as partially-unknown-type, although the signature has no unknown type.

contains_any_style now inspects only the signatures of function types (previously done only for __wrapped__ functions).

  • I am a human, and I fully understand the code I am submitting.

Test Plan

Added test_cached_property_decoratee_not_partially_unknown in decorators.rs. It fails without the fix. The decorators, wrapped and partially_unknown tests pass.

A decorator applied beneath @cached_property received a function whose
metadata records the descriptor class cached_property[Unknown], so the
argument was reported as partially-unknown-type even though no unknown
type is visible in the function's signature.

contains_implicit_any now inspects only the signatures of function types,
not their metadata, instead of special-casing __wrapped__.

Fixes pyrefly-org#5853
@meta-cla meta-cla Bot added the cla signed label Dec 3, 2026
@meta-codesync

meta-codesync Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D135981095. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ This PR meets all requirements from our pull request checklist.

Note: this comment updates automatically after changes to the PR. Updates may take up to half an hour.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Diff from mypy_primer, showing the effect of this PR on open source code:

============================================================
SUMMARY
============================================================
Total: +3 new errors, -196 fixed errors
By preset: +0/-0 (default), +0/-0 (strict)

Projects with changes (23):
  python-sop: +0 -1
  pyochain: +0 -1
  rotki: +0 -26
  comtypes: +0 -1
  cvxpy: +0 -5
  scikit-learn: +0 -9
  discord.py: +0 -1
  artigraph: +0 -3
  cryptography: +0 -6
  jax: +0 -5
  setuptools: +0 -2
  spark: +0 -2
  mkdocs: +0 -3
  static-frame: +0 -2
  bokeh: +0 -3
  ibis: +0 -49
  poetry: +0 -1
  pandas: +0 -7
  pytensor: +3 -48
  hydpy: +0 -2
  xarray: +0 -9
  dd-trace-py: +0 -4
  core: +0 -6
============================================================

FULL DIFF DETAILS
------------------------------------------------------------

python-sop (https://gitlab.com/dkg/python-sop)
- ERROR sop/__init__.py:331:25-37: The type of attribute `autocomplete` is unknown because it comes from an error [unknown-from-error]

pyochain (https://github.com/OutSquareCapital/pyochain)
- ERROR tests/test_abc/test_parents.py:53:26-30: The type of attribute `iter` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/chain/ethereum/defi/price.py:128:32-35: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/ethereum/modules/convex/convex_cache.py:103:32-35: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/ethereum/modules/uniswap/utils.py:34:32-35: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/ethereum/oracles/uniswap.py:430:105-108: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/ethereum/oracles/uniswap.py:539:103-106: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/compound/v3/balances.py:168:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/compound/v3/balances.py:233:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/extrafi/balances.py:109:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/extrafi/balances.py:167:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/extrafi/balances.py:254:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/extrafi/cache.py:55:32-35: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/extrafi/utils.py:45:44-47: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/gearbox/balances.py:53:45-48: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/gearbox/gearbox_cache.py:378:36-39: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/giveth/balances.py:56:116-119: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/hop/balances.py:64:47-50: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/uniswap/v3/utils.py:208:50-53: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/decoding/velodrome/decoder.py:419:46-49: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/evm/utils.py:120:36-39: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/chain/hyperliquid/modules/project_x/decoder.py:141:58-61: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/inquirer.py:1462:53-56: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/inquirer.py:1551:41-44: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/inquirer.py:1637:50-53: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/inquirer.py:1751:53-56: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/unit/test_indexers.py:200:41-44: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/utils/blockchain.py:300:97-100: The type of attribute `abi` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

comtypes (https://github.com/enthought/comtypes)
- ERROR comtypes/test/test_cpp_safearray.py:166:33-37: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

cvxpy (https://github.com/cvxpy/cvxpy)
- ERROR cvxpy/lin_ops/backends/scipy_backend.py:1173:40-45: The type of attribute `tocsr` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR cvxpy/lin_ops/backends/scipy_backend.py:1201:40-45: The type of attribute `tocsr` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR cvxpy/reductions/solvers/conic_solvers/moreau_conif.py:380:55-59: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR cvxpy/reductions/solvers/conic_solvers/moreau_conif.py:383:49-53: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR cvxpy/reductions/solvers/nlp_solvers/diff_engine/extractor.py:35:45-50: The type of attribute `tocsc` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- ERROR sklearn/datasets/_svmlight_format_io.py:399:22-25: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/decomposition/tests/test_pca.py:593:23-26: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/gaussian_process/tests/test_gpr.py:199:41-44: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/gaussian_process/tests/test_gpr.py:200:45-48: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/utils/fixes.py:192:30-33: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/utils/fixes.py:193:30-33: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/utils/fixes.py:290:42-50: The type of attribute `asformat` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/utils/validation.py:2023:23-26: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR sklearn/utils/validation.py:2033:27-30: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

discord.py (https://github.com/Rapptz/discord.py)
- ERROR discord/shard.py:166:31-36: The type of attribute `delay` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

artigraph (https://github.com/artigraph/artigraph)
- ERROR src/arti/graphs/__init__.py:182:5-21: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/arti/graphs/__init__.py:201:5-21: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/arti/graphs/__init__.py:206:5-21: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

cryptography (https://github.com/pyca/cryptography)
- ERROR tests/hazmat/primitives/utils.py:78:24-33: The type of attribute `encryptor` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/hazmat/primitives/utils.py:82:24-33: The type of attribute `decryptor` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/hazmat/primitives/utils.py:143:28-37: The type of attribute `encryptor` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/hazmat/primitives/utils.py:157:28-37: The type of attribute `decryptor` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/hazmat/primitives/utils.py:326:16-25: The type of attribute `encryptor` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/cryptography/x509/extensions.py:223:34-43: The type of attribute `_from_der` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

jax (https://github.com/google/jax)
- ERROR jax/_src/numpy/indexing.py:1305:31-35: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR jax/_src/public_test_util.py:230:17-21: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR jax/_src/test_util.py:718:60-64: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR jax/_src/test_util.py:741:30-34: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR jax/experimental/mosaic/gpu/profiler.py:274:75-78: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

setuptools (https://github.com/pypa/setuptools)
- ERROR setuptools/_entry_points.py:68:7-15: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR setuptools/_entry_points.py:82:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

spark (https://github.com/apache/spark)
- ERROR python/pyspark/sql/tests/pandas/test_pandas_udf_grouped_agg.py:865:22-25: The type of attribute `sum` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR python/pyspark/sql/tests/pandas/test_pandas_udf_window.py:673:22-25: The type of attribute `sum` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

mkdocs (https://github.com/mkdocs/mkdocs)
- ERROR mkdocs/structure/files.py:371:12-38: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
- ERROR mkdocs/structure/files.py:389:16-47: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
- ERROR mkdocs/structure/files.py:402:11-36: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]

static-frame (https://github.com/static-frame/static-frame)
- ERROR static_frame/test/unit/test_index_hierarchy.py:876:13-19: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR static_frame/test/unit/test_index_hierarchy.py:877:13-19: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

bokeh (https://github.com/bokeh/bokeh)
- ERROR src/bokeh/core/serialization.py:327:40-44: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/bokeh/models/renderers/graph_renderer.py:89:35-45: The type of attribute `add_labels` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/bokeh/models/renderers/graph_renderer.py:104:35-45: The type of attribute `add_labels` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

ibis (https://github.com/ibis-project/ibis)
- ERROR ibis/expr/api.py:2453:8-16: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/api.py:2454:8-16: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/api.py:2468:8-16: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/api.py:2469:8-16: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/api.py:2470:8-16: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:213:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:223:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:229:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:230:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:237:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:246:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:247:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:266:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:267:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:273:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:279:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:291:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:303:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:309:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:315:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:323:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:340:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:347:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:353:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:354:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:360:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:361:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:366:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:371:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:381:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:389:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:395:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:400:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:410:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:415:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/format.py:420:6-14: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:50:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:57:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:72:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:85:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:86:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:91:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:101:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:106:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:125:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:138:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:144:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:156:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/_rich.py:172:16-24: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

poetry (https://github.com/python-poetry/poetry)
- ERROR tests/utils/test_threading.py:72:17-48: The type of attribute `value_functools_cached_property` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/core/algorithms.py:612:61-64: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/algorithms.py:613:39-42: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/arrays/categorical.py:1898:34-37: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/arrays/categorical.py:1898:74-77: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/arrays/sparse/accessor.py:369:52-56: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/tools/datetimes.py:1495:25-28: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandas/core/tools/datetimes.py:1495:54-57: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

pytensor (https://github.com/pymc-devs/pytensor)
- ERROR pytensor/assumptions/permutation.py:49:39-42: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/assumptions/selection.py:37:37-40: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:215:29-32: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:216:29-32: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:221:29-32: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:222:29-32: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:226:51-54: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/compile/debug/debugmode.py:227:51-54: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/basic.py:35:13-21: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/random.py:58:13-21: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/scalar.py:125:41-49: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/scalar.py:133:41-49: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/scalar.py:144:41-49: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/scalar.py:152:41-49: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/scalar.py:160:41-49: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/jax/dispatch/sparse.py:10:13-21: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/mlx/dispatch/scalar/bessel.py:367:31-35: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:222:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:284:33-37: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:352:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:398:38-42: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:460:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:527:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:593:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/linalg/decomposition/qr.py:680:34-38: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/sparse/basic.py:687:32-36: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/sparse/basic.py:810:40-44: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/sparse/basic.py:816:40-44: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/sparse/basic.py:841:36-40: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/link/numba/dispatch/sparse/basic.py:847:36-40: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/sparse/sharedvar.py:16:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/__init__.py:96:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/basic.py:321:35-39: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/basic.py:1774:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/basic.py:1974:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/basic.py:2651:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/elemwise.py:1783:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/random/variable.py:241:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/random/variable.py:242:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/rewriting/shape.py:143:31-35: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pytensor/tensor/shape.py:155:38-52: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR pytensor/tensor/shape.py:578:45-59: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pytensor/tensor/sharedvar.py:54:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/sharedvar.py:99:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/sharedvar.py:100:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/sharedvar.py:101:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/sharedvar.py:102:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pytensor/tensor/subtensor.py:1403:42-56: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pytensor/tensor/variable.py:890:21-29: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/tensor/variable.py:975:51-55: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pytensor/xtensor/type.py:1062:24-32: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

hydpy (https://github.com/hydpy-dev/hydpy)
- ERROR hydpy/core/objecttools.py:786:27-31: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR hydpy/core/objecttools.py:1686:35-39: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

xarray (https://github.com/pydata/xarray)
- ERROR xarray/coding/times.py:113:18-21: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/coding/times.py:114:18-21: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/coding/times.py:819:37-41: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/core/variable.py:922:15-19: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/plot/utils.py:240:30-33: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/plot/utils.py:248:30-33: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/plot/utils.py:1122:41-44: The type of attribute `min` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/plot/utils.py:1123:41-44: The type of attribute `max` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR xarray/tests/test_indexes.py:34:16-20: The type of attribute `item` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ERROR ddtrace/internal/packages.py:926:15-23: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ddtrace/internal/packages.py:932:15-23: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ddtrace/internal/utils/inspection.py:29:10-18: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ddtrace/internal/utils/inspection.py:35:10-18: The type of attribute `register` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

core (https://github.com/home-assistant/core)
- ERROR homeassistant/components/template/image.py:483:35-49: The type of attribute `entity_picture` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR homeassistant/components/unifiprotect/sensor.py:84:57-75: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR homeassistant/components/unifiprotect/sensor.py:84:62-75: The type of attribute `get_ufp_value` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR homeassistant/components/wiz/fan.py:45:23-41: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
- ERROR homeassistant/components/wiz/fan.py:45:36-41: The type of attribute `is_on` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR homeassistant/components/zha/device_tracker.py:78:26-35: The type of attribute `unique_id` is partially unknown; it contains an implicit `Any` [partially-unknown-type]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

partially-unknown-type error when decorator that uses Any in its callable type is called on a decorated function

1 participant