fix(exports): condition the export of definitions under TYPE_CHECKING#3630
fix(exports): condition the export of definitions under TYPE_CHECKING#3630rexledesma wants to merge 1 commit into
TYPE_CHECKING#3630Conversation
| /// True while every definition site is inside an `if TYPE_CHECKING:` body. | ||
| /// Such names resolve in-module but are not importable at runtime. | ||
| pub type_checking_only: bool, |
There was a problem hiding this comment.
We could probably have a better diff to squash the problem of " no conditional exports", which would also address #3624, but want to keep this diff scoped to get immediate feedback first ✌️
This comment has been minimized.
This comment has been minimized.
0ce7ccb to
5a3cf14
Compare
|
The primer errors are probably related to my comment at #3629 (comment) |
5a3cf14 to
4617696
Compare
This comment has been minimized.
This comment has been minimized.
bbc4d0e to
ad8fd85
Compare
ad8fd85 to
6edf11e
Compare
TYPE_CHECKINGTYPE_CHECKING
|
@jorenham hmm ok I guess that's fine. I'm not a fan of these re-exports in the TYPE_CHECKING block because it adds some indirection around the source of source for these type annotations. I'll switch my implementation to be more liberal about the exports here, but maybe we can have a rule to emit a warning/error for this sort of indirection? |
feels more like a job for a linter like |
|
Diff from mypy_primer, showing the effect of this PR on open source code: cloud-init (https://github.com/canonical/cloud-init)
+ ERROR cloudinit/config/cc_ansible.py:15:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_apk_configure.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_apt_configure.py:23:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_apt_pipelining.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_bootcmd.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_byobu.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ca_certs.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_chef.py:21:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_disable_ec2_metadata.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_disk_setup.py:19:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_fan.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_final_message.py:15:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_growpart.py:26:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_grub_dpkg.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_install_hotplug.py:9:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_keyboard.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_keys_to_console.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_landscape.py:19:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_locale.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_lxd.py:18:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_mcollective.py:23:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_mounts.py:22:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ntp.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_package_update_upgrade_install.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_phone_home.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_power_state_change.py:19:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_puppet.py:23:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_raspberry_pi.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_reset_rmc.py:33:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_resizefs.py:21:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_resolv_conf.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_rh_subscription.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_rsyslog.py:22:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_runcmd.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_salt_minion.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_scripts_per_boot.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_scripts_per_instance.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_scripts_per_once.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_scripts_user.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_scripts_vendor.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_seed_random.py:18:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_set_hostname.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_set_passwords.py:19:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_snap.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_spacewalk.py:9:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ssh.py:20:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ssh_authkey_fingerprints.py:15:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ssh_import_id.py:18:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_timezone.py:15:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ubuntu_autoinstall.py:11:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ubuntu_drivers.py:22:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_ubuntu_pro.py:14:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_update_etc_hosts.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_update_hostname.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_users_groups.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_wireguard.py:12:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_write_files.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_write_files_deferred.py:13:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_yum_add_repo.py:17:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR cloudinit/config/cc_zypper_add_repo.py:16:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
+ ERROR tests/integration_tests/assets/dropins/cc_custom_module_24_1.py:10:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
- ERROR tests/integration_tests/assets/dropins/cc_custom_module_24_1.py:24:5-11: Key `name` is not defined in TypedDict `MetaSchema` [bad-typed-dict-key]
- ERROR tests/integration_tests/assets/dropins/cc_custom_module_24_1.py:25:5-12: Key `title` is not defined in TypedDict `MetaSchema` [bad-typed-dict-key]
- ERROR tests/integration_tests/assets/dropins/cc_custom_module_24_1.py:26:5-18: Key `description` is not defined in TypedDict `MetaSchema` [bad-typed-dict-key]
- ERROR tests/integration_tests/assets/dropins/cc_custom_module_24_1.py:30:5-15: Key `examples` is not defined in TypedDict `MetaSchema` [bad-typed-dict-key]
+ ERROR tests/unittests/config/test_modules.py:15:37-47: Could not import `MetaSchema` from `cloudinit.config.schema` [missing-module-attribute]
mkosi (https://github.com/systemd/mkosi)
+ ERROR mkosi/__init__.py:120:5-10: Could not import `Popen` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/bootloader.py:33:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/installer/apk.py:13:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/installer/apt.py:13:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/installer/dnf.py:13:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/installer/pacman.py:15:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
+ ERROR mkosi/installer/zypper.py:12:23-39: Could not import `CompletedProcess` from `mkosi.run` [missing-module-attribute]
steam.py (https://github.com/Gobot1234/steam.py)
+ ERROR steam/client.py:1356:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/client.py:1360:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/client.py:1364:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/client.py:1368:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/ext/csgo/models.py:190:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/ext/tf2/types/schema.py:25:5-16: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:48:5-23: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:49:5-24: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:52:5-19: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:66:5-23: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:71:5-16: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:78:5-17: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/ext/tf2/types/schema.py:90:5-19: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/tag.py:82:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/tag.py:114:6-16: No attribute `todo` in module `steam.utils` [missing-attribute]
+ ERROR steam/types/achievement.py:49:5-14: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/achievement.py:50:5-14: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/achievement.py:57:5-13: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:19:5-13: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:30:5-9: `Required` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:31:5-9: `Required` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:278:5-8: `Required` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:285:5-11: `Required` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:298:5-16: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:299:5-16: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:314:5-23: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:315:5-41: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:316:5-32: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:320:5-14: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:321:5-15: `NotRequired` may only be used for TypedDict members [invalid-annotation]
+ ERROR steam/types/manifest.py:322:5-14: `NotRequired` may only be used for TypedDict members [invalid-annotation]
jax (https://github.com/google/jax)
+ ERROR jax/_src/ad_checkpoint.py:51:71-79: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/ad_checkpoint.py:52:28-36: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/ad_util.py:26:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/api.py:74:35-43: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/api.py:74:45-53: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/api_util.py:34:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/api_util.py:34:67-75: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/array.py:51:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/callback.py:53:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/callback.py:54:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/checkify.py:53:40-48: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/checkify.py:53:50-58: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/checkify.py:54:64-71: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/compute_on.py:28:28-36: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/compute_on.py:28:38-46: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/compute_on.py:31:40-60: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/core.py:52:28-36: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/core.py:52:38-46: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/core.py:55:28-35: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/custom_batching.py:43:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/custom_batching.py:44:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/custom_derivatives.py:46:35-43: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/custom_derivatives.py:46:45-53: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/debugging.py:82:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/dispatch.py:72:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/dispatch.py:73:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/earray.py:25:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/earray.py:25:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/export/_export.py:47:40-60: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/export/_export.py:63:7-20: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/export/_export.py:64:7-20: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/ffi.py:42:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/flatten_util.py:23:27-42: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/hijax.py:42:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/hijax.py:42:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/internal_test_util/lax_test_util.py:30:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/internal_test_util/lax_test_util.py:30:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/ad.py:41:36-44: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/ad.py:41:46-54: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/ad.py:43:28-35: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/batching.py:35:36-44: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/batching.py:35:46-54: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/mlir.py:55:40-60: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/interpreters/mlir.py:63:27-34: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/mlir.py:67:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/interpreters/mlir.py:68:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/interpreters/mlir.py:632:3-16: No attribute `mhlo` in module `jax._src.lib.mlir.dialects` [missing-attribute]
+ ERROR jax/_src/interpreters/mlir.py:633:3-16: No attribute `chlo` in module `jax._src.lib.mlir.dialects` [missing-attribute]
+ ERROR jax/_src/interpreters/partial_eval.py:47:36-44: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/partial_eval.py:47:46-54: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/partial_eval.py:50:39-46: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/pxla.py:66:28-36: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/pxla.py:66:38-46: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/remat.py:22:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/interpreters/remat.py:22:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/jaxpr_util.py:40:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/jaxpr_util.py:41:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/lax/ann.py:87:40-44: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/common.py:34:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/conditionals.py:47:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/conditionals.py:47:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/loops.py:67:40-44: Could not import `chlo` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/loops.py:80:34-42: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/loops.py:80:44-52: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/control_flow/solves.py:33:39-47: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/convolution.py:1029:10-23: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/lax/eval_jaxpr.py:22:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/eval_jaxpr.py:22:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/lax.py:66:40-44: Could not import `chlo` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/lax/lax.py:73:28-36: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/lax.py:73:38-46: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/lax.py:74:28-35: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/linalg.py:51:40-44: Could not import `chlo` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/lax/parallel.py:49:57-65: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/parallel.py:49:67-75: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/slicing.py:53:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/slicing.py:53:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/special.py:38:40-44: Could not import `chlo` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/lax/utils.py:31:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/lax/windowed_reductions.py:43:7-20: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/lax/windowed_reductions.py:44:7-20: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/mesh.py:33:28-36: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/array_methods.py:55:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/array_methods.py:55:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/fft.py:25:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/indexing.py:50:46-54: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/lax_numpy.py:67:20-28: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/util.py:30:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/util.py:30:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/vectorize.py:28:39-54: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/numpy/vectorize.py:28:56-71: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/core.py:64:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/core.py:65:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/cost_estimate.py:30:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/cost_estimate.py:31:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/fuser/custom_evaluate.py:57:3-16: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/custom_evaluate.py:58:3-16: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/custom_evaluate.py:75:12-25: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/custom_evaluate.py:78:7-20: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/custom_evaluate.py:82:10-23: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/custom_fusion_lib.py:264:10-23: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/fusible.py:125:22-35: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/fusible_dtype.py:44:27-34: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/fuser/fusible_dtype.py:46:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/fusible_dtype.py:47:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/fuser/fusion.py:26:12-25: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/hlo_interpreter.py:50:5-12: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/hlo_interpreter.py:51:5-13: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/hlo_interpreter.py:52:5-13: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/core.py:38:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/core.py:39:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/interpret/interpret_pallas_call.py:51:5-13: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/interpret/interpret_pallas_call.py:52:5-13: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/interpret/utils.py:26:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:57:40-45: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:58:40-42: Could not import `cf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:59:40-44: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:60:40-57: Could not import `math` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:61:40-46: Could not import `memref` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:62:40-43: Could not import `scf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:63:40-46: Could not import `vector` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:77:27-34: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:78:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/lowering.py:79:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/primitives.py:45:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/primitives.py:46:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:28:40-45: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:29:40-46: Could not import `memref` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:30:40-46: Could not import `vector` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:42:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:43:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_primitives.py:32:40-45: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_primitives.py:33:40-43: Could not import `scf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic/sc_primitives.py:34:40-46: Could not import `vector` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/interpret/interpret_pallas_call.py:31:28-36: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/interpret/jaxpr_interpret.py:34:28-36: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:48:40-62: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:49:40-56: Could not import `cf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:50:40-58: Could not import `gpu` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:51:40-60: Could not import `llvm` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:52:40-60: Could not import `math` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:53:40-64: Could not import `memref` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:54:40-60: Could not import `nvvm` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:55:40-58: Could not import `scf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:56:40-64: Could not import `vector` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:67:27-34: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:76:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:77:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/pipeline.py:42:7-20: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/pipeline.py:43:7-20: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:38:40-62: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:39:40-66: Could not import `builtin` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:40:40-58: Could not import `gpu` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:41:40-60: Could not import `nvvm` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:42:40-64: Could not import `vector` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/mosaic_gpu/torch.py:32:40-44: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/pallas_call.py:53:5-13: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/pallas_call.py:54:5-13: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/primitives.py:57:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/primitives.py:58:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:44:40-62: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:45:40-60: Could not import `math` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:46:40-58: Could not import `scf` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:53:27-34: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:60:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/triton/lowering.py:61:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pallas/triton/primitives.py:30:40-62: Could not import `arith` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pallas/triton/primitives.py:31:40-58: Could not import `gpu` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pjit.py:61:40-60: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/_src/pjit.py:78:23-31: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pjit.py:78:33-41: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/pmap.py:49:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/pmap.py:50:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/random/prng.py:52:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/random/prng.py:52:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/scipy/ndimage.py:28:27-42: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/scipy/sparse/linalg.py:31:27-42: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/shard_alike.py:25:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/shard_map.py:63:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/shard_map.py:64:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/sharding.py:20:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/stages.py:61:19-32: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/stages.py:62:19-32: No attribute `safe_zip` in module `jax._src.util` [missing-attribute]
+ ERROR jax/_src/state/discharge.py:46:28-35: Could not import `foreach` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/discharge.py:46:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/discharge.py:46:47-55: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/primitives.py:49:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/primitives.py:49:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/types.py:34:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/types.py:34:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/utils.py:28:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/state/utils.py:28:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/_src/tree_util.py:28:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/example_libraries/optimizers.py:102:27-35: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/example_libraries/optimizers.py:102:37-45: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/experimental/fused.py:20:27-35: Could not import `safe_map` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/experimental/fused.py:20:37-45: Could not import `safe_zip` from `jax._src.util` [missing-module-attribute]
+ ERROR jax/experimental/jax2tf/call_tf.py:46:40-60: Could not import `func` from `jax._src.lib.mlir.dialects` [missing-module-attribute]
+ ERROR jax/experimental/jax2tf/call_tf.py:56:7-20: No attribute `safe_map` in module `jax._src.util` [missing-attribute]
... (truncated 42 lines) ...
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/pandas/resample.py:374:40-49: Argument `Index` is not assignable to parameter `origin` with type `Timestamp` in function `Resampler._bin_timestamp` [bad-argument-type]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_assign_frame.py:172:9-38: Cannot set item in `DataFrame` [unsupported-operation]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_aggregate.py:115:20-77: Argument `list[tuple[str, str, str]]` is not assignable to parameter `by` with type `Sequence[str] | str` in function `pandas.core.frame.DataFrame.sort_values` [bad-argument-type]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:52:60-84: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:52:60-84: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:60:17-48: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:60:17-48: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:64:17-41: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:64:17-41: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:72:17-48: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:72:17-48: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:76:17-41: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:76:17-41: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:84:17-48: Expected a callable, got `SeriesGroupBy[Any, int]` [not-callable]
+ ERROR python/pyspark/pandas/tests/diff_frames_ops/test_groupby_fillna.py:84:17-48: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/diff_frames_ops/test_index.py:84:9-38: Cannot set item in `DataFrame` [unsupported-operation]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:41:59-82: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:41:59-82: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:49:17-47: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:49:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:53:17-40: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:53:17-40: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:61:17-47: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:61:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:65:17-40: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:65:17-40: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:73:17-47: Expected a callable, got `SeriesGroupBy[Any, Scalar]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:73:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:77:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:85:17-54: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:89:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:97:17-54: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:129:17-47: Expected a callable, got `SeriesGroupBy[Any, tuple[Hashable, ...]]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:129:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:133:17-47: Expected a callable, got `SeriesGroupBy[Any, tuple[Hashable, ...]]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:133:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:137:17-47: Expected a callable, got `SeriesGroupBy[Any, tuple[Hashable, ...]]` [not-callable]
+ ERROR python/pyspark/pandas/tests/groupby/test_missing_data.py:137:17-47: Expected a callable, got `SeriesGroupBy[Any]` [not-callable]
- ERROR python/pyspark/pandas/tests/indexes/test_indexing_loc_2d.py:92:44-61: Cannot index into `_LocIndexerFrame[DataFrame]` [bad-index]
- ERROR python/pyspark/pandas/tests/indexes/test_indexing_loc_2d.py:93:44-61: Cannot index into `_LocIndexerFrame[DataFrame]` [bad-index]
+ ERROR python/pyspark/testing/pandasutils.py:468:48-87: No matching overload found for function `pandas.core.frame.DataFrame.sort_values` called with arguments: (by=Index[str], ignore_index=Literal[True]) [no-matching-overload]
+ ERROR python/pyspark/testing/pandasutils.py:470:50-90: No matching overload found for function `pandas.core.frame.DataFrame.sort_values` called with arguments: (by=Index[str], ignore_index=Literal[True]) [no-matching-overload]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/prefect/server/api/artifacts.py:34:16-54: `Artifact` is not assignable to variable `artifact` with type `ArtifactCreate` [bad-assignment]
- ERROR src/prefect/server/api/artifacts.py:41:22-30: Argument `ArtifactCreate` is not assignable to parameter `artifact` with type `Artifact` in function `prefect.server.models.artifacts.create_artifact` [bad-argument-type]
- ERROR src/prefect/server/api/artifacts.py:46:12-17: Returned type `prefect.server.database.orm_models.Artifact` is not assignable to declared return type `prefect.server.schemas.core.Artifact` [bad-return]
- ERROR src/prefect/server/api/artifacts.py:66:12-20: Returned type `prefect.server.database.orm_models.Artifact` is not assignable to declared return type `prefect.server.schemas.core.Artifact` [bad-return]
- ERROR src/prefect/server/api/artifacts.py:85:12-20: Returned type `ArtifactCollection` is not assignable to declared return type `Artifact` [bad-return]
- ERROR src/prefect/server/api/artifacts.py:93:41-45: Default `None` is not assignable to parameter `artifacts` with type `ArtifactFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:94:40-44: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:95:40-44: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:96:33-37: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:97:45-49: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:104:16-114:10: Returned type `Sequence[prefect.server.database.orm_models.Artifact]` is not assignable to declared return type `list[prefect.server.schemas.core.Artifact]` [bad-return]
- ERROR src/prefect/server/api/artifacts.py:122:51-55: Default `None` is not assignable to parameter `artifacts` with type `ArtifactCollectionFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:123:40-44: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:124:40-44: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:125:33-37: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:126:45-49: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:133:16-143:10: Returned type `Sequence[prefect.server.database.orm_models.ArtifactCollection]` is not assignable to declared return type `list[prefect.server.schemas.core.ArtifactCollection]` [bad-return]
- ERROR src/prefect/server/api/artifacts.py:148:41-45: Default `None` is not assignable to parameter `artifacts` with type `ArtifactFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:149:40-44: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:150:40-44: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:151:33-37: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:152:45-49: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:171:51-55: Default `None` is not assignable to parameter `artifacts` with type `ArtifactCollectionFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:172:40-44: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:173:40-44: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:174:33-37: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/artifacts.py:175:45-49: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/block_documents.py:81:18-22: Argument `BlockDocumentSort | None` is not assignable to parameter `sort` with type `BlockDocumentSort` in function `prefect.server.models.block_documents.read_block_documents` [bad-argument-type]
- ERROR src/prefect/server/api/block_schemas.py:69:16-21: Returned type `prefect.server.schemas.core.BlockSchema | prefect.server.database.orm_models.BlockSchema` is not assignable to declared return type `prefect.server.schemas.core.BlockSchema` [bad-return]
- ERROR src/prefect/server/api/block_schemas.py:90:12-48: Object of class `NoneType` has no attribute `is_protected` [missing-attribute]
- ERROR src/prefect/server/api/block_types.py:36:37-47: Argument `BlockTypeCreate` is not assignable to parameter `block_type` with type `prefect.server.schemas.core.BlockType | prefect.client.schemas.objects.BlockType` in function `prefect.server.models.block_types.create_block_type` [bad-argument-type]
- ERROR src/prefect/server/api/block_types.py:43:12-30: Returned type `prefect.server.database.orm_models.BlockType | None` is not assignable to declared return type `prefect.server.schemas.core.BlockType` [bad-return]
- ERROR src/prefect/server/api/block_types.py:60:12-22: Returned type `prefect.server.database.orm_models.BlockType` is not assignable to declared return type `prefect.server.schemas.core.BlockType` [bad-return]
- ERROR src/prefect/server/api/block_types.py:77:12-22: Returned type `prefect.server.database.orm_models.BlockType` is not assignable to declared return type `prefect.server.schemas.core.BlockType` [bad-return]
- ERROR src/prefect/server/api/block_types.py:92:16-98:10: Returned type `Sequence[prefect.server.database.orm_models.BlockType]` is not assignable to declared return type `list[prefect.server.schemas.core.BlockType]` [bad-return]
- ERROR src/prefect/server/api/block_types.py:124:13-23: Argument `BlockTypeUpdate` is not assignable to parameter `local_block_type` with type `BlockType` in function `prefect.blocks.core._should_update_block_type` [bad-argument-type]
- ERROR src/prefect/server/api/block_types.py:125:13-87: Argument `prefect.server.schemas.core.BlockType` is not assignable to parameter `server_block_type` with type `prefect.client.schemas.objects.BlockType` in function `prefect.blocks.core._should_update_block_type` [bad-argument-type]
- ERROR src/prefect/server/api/concurrency_limits.py:144:12-17: Returned type `prefect.server.database.orm_models.ConcurrencyLimit` is not assignable to declared return type `prefect.server.schemas.core.ConcurrencyLimit` [bad-return]
- ERROR src/prefect/server/api/concurrency_limits.py:187:12-20: Returned type `prefect.server.database.orm_models.ConcurrencyLimit` is not assignable to declared return type `prefect.server.schemas.core.ConcurrencyLimit` [bad-return]
- ERROR src/prefect/server/api/concurrency_limits.py:237:12-45: Returned type `list[prefect.server.schemas.core.ConcurrencyLimit | prefect.server.database.orm_models.ConcurrencyLimit]` is not assignable to declared return type `Sequence[prefect.server.schemas.core.ConcurrencyLimit]` [bad-return]
- ERROR src/prefect/server/api/deployments.py:163:22-64: `Deployment` is not assignable to variable `deployment` with type `DeploymentCreate` [bad-assignment]
- ERROR src/prefect/server/api/deployments.py:300:36-40: `None` is not assignable to attribute `schedules` with type `list[DeploymentScheduleUpdate]` [bad-assignment]
- ERROR src/prefect/server/api/deployments.py:951:20-973:10: `FlowRun` is not assignable to variable `flow_run` with type `DeploymentFlowRunCreate` [bad-assignment]
- ERROR src/prefect/server/api/deployments.py:980:39-47: Argument `DeploymentFlowRunCreate` is not assignable to parameter `flow_run` with type `FlowRun` in function `prefect.server.models.flow_runs.create_flow_run` [bad-argument-type]
- ERROR src/prefect/server/api/deployments.py:1231:12-23: Returned type `Sequence[prefect.server.database.orm_models.WorkQueue]` is not assignable to declared return type `list[prefect.server.schemas.core.WorkQueue]` [bad-return]
+ ERROR src/prefect/server/api/deployments.py:1231:12-23: Returned type `Sequence[WorkQueue]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/flow_run_states.py:40:12-26: Returned type `FlowRunState` is not assignable to declared return type `State` [bad-return]
- ERROR src/prefect/server/api/flow_run_states.py:52:16-54:10: Returned type `Sequence[FlowRunState]` is not assignable to declared return type `list[State]` [bad-return]
+ ERROR src/prefect/server/api/flow_run_states.py:52:16-54:10: Returned type `Sequence[FlowRunState]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/flows.py:37:12-50: `Flow` is not assignable to variable `flow` with type `FlowCreate` [bad-assignment]
- ERROR src/prefect/server/api/flows.py:42:70-74: Argument `FlowCreate` is not assignable to parameter `flow` with type `Flow` in function `prefect.server.models.flows.create_flow` [bad-argument-type]
- ERROR src/prefect/server/api/flows.py:46:12-17: Returned type `prefect.server.database.orm_models.Flow` is not assignable to declared return type `prefect.server.schemas.core.Flow` [bad-return]
- ERROR src/prefect/server/api/flows.py:70:41-45: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:71:48-52: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:72:48-52: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:73:53-57: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:74:50-54: Default `None` is not assignable to parameter `work_pools` with type `WorkPoolFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:105:12-16: Returned type `prefect.server.database.orm_models.Flow` is not assignable to declared return type `prefect.server.schemas.core.Flow` [bad-return]
- ERROR src/prefect/server/api/flows.py:122:12-16: Returned type `prefect.server.database.orm_models.Flow` is not assignable to declared return type `prefect.server.schemas.core.Flow` [bad-return]
- ERROR src/prefect/server/api/flows.py:129:41-45: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:130:48-52: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:131:48-52: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:132:53-57: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:133:50-54: Default `None` is not assignable to parameter `work_pools` with type `WorkPoolFilter` [bad-function-definition]
- ERROR src/prefect/server/api/flows.py:141:16-151:10: Returned type `Sequence[prefect.server.database.orm_models.Flow]` is not assignable to declared return type `list[prefect.server.schemas.core.Flow]` [bad-return]
+ ERROR src/prefect/server/api/flows.py:141:16-151:10: Returned type `Sequence[Flow]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/run_history.py:159:14-42: Type `Result[tuple[Any, Any, Unknown]]` is not awaitable [not-async]
+ ERROR src/prefect/server/api/run_history.py:159:14-42: Type `Result[Any]` is not awaitable [not-async]
- ERROR src/prefect/server/api/saved_searches.py:33:20-73: `SavedSearch` is not assignable to variable `saved_search` with type `SavedSearchCreate` [bad-assignment]
- ERROR src/prefect/server/api/saved_searches.py:39:43-55: Argument `SavedSearchCreate` is not assignable to parameter `saved_search` with type `SavedSearch` in function `prefect.server.models.saved_searches.create_saved_search` [bad-argument-type]
- ERROR src/prefect/server/api/saved_searches.py:45:12-17: Returned type `prefect.server.database.orm_models.SavedSearch` is not assignable to declared return type `prefect.server.schemas.core.SavedSearch` [bad-return]
- ERROR src/prefect/server/api/saved_searches.py:64:12-24: Returned type `prefect.server.database.orm_models.SavedSearch` is not assignable to declared return type `prefect.server.schemas.core.SavedSearch` [bad-return]
- ERROR src/prefect/server/api/saved_searches.py:77:16-81:10: Returned type `Sequence[prefect.server.database.orm_models.SavedSearch]` is not assignable to declared return type `list[prefect.server.schemas.core.SavedSearch]` [bad-return]
+ ERROR src/prefect/server/api/saved_searches.py:77:16-81:10: Returned type `Sequence[SavedSearch]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/task_run_states.py:40:12-26: Returned type `TaskRunState` is not assignable to declared return type `State` [bad-return]
- ERROR src/prefect/server/api/task_run_states.py:52:16-54:10: Returned type `Sequence[TaskRunState]` is not assignable to declared return type `list[State]` [bad-return]
+ ERROR src/prefect/server/api/task_run_states.py:52:16-54:10: Returned type `Sequence[TaskRunState]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/task_runs.py:73:16-53: `TaskRun` is not assignable to variable `task_run` with type `TaskRunCreate` [bad-assignment]
- ERROR src/prefect/server/api/task_runs.py:83:22-30: Argument `TaskRunCreate` is not assignable to parameter `task_run` with type `TaskRun` in function `prefect.server.models.task_runs.create_task_run` [bad-argument-type]
- ERROR src/prefect/server/api/task_runs.py:115:41-45: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:116:48-52: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:117:48-52: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:118:53-57: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:146:41-45: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:147:48-52: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:148:48-52: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:149:53-57: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/task_runs.py:191:12-20: Returned type `prefect.server.database.orm_models.TaskRun` is not assignable to declared return type `prefect.server.schemas.core.TaskRun` [bad-return]
- ERROR src/prefect/server/api/task_runs.py:209:16-218:10: Returned type `Sequence[prefect.server.database.orm_models.TaskRun]` is not assignable to declared return type `list[prefect.server.schemas.core.TaskRun]` [bad-return]
+ ERROR src/prefect/server/api/task_runs.py:209:16-218:10: Returned type `Sequence[TaskRun]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/ui/flow_runs.py:54:41-45: Default `None` is not assignable to parameter `flows` with type `FlowFilter` [bad-function-definition]
- ERROR src/prefect/server/api/ui/flow_runs.py:55:48-52: Default `None` is not assignable to parameter `flow_runs` with type `FlowRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/ui/flow_runs.py:56:48-52: Default `None` is not assignable to parameter `task_runs` with type `TaskRunFilter` [bad-function-definition]
- ERROR src/prefect/server/api/ui/flow_runs.py:57:53-57: Default `None` is not assignable to parameter `deployments` with type `DeploymentFilter` [bad-function-definition]
- ERROR src/prefect/server/api/ui/flow_runs.py:58:50-54: Default `None` is not assignable to parameter `work_pools` with type `WorkPoolFilter` [bad-function-definition]
- ERROR src/prefect/server/api/ui/flow_runs.py:73:21-28: Argument `list[InstrumentedAttribute[StateType | None] | InstrumentedAttribute[Unknown | None] | InstrumentedAttribute[UUID] | InstrumentedAttribute[timedelta]]` is not assignable to parameter `columns` with type `list[str] | None` in function `prefect.server.models.flow_runs.read_flow_runs` [bad-argument-type]
- ERROR src/prefect/server/api/variables.py:110:16-116:10: Returned type `Sequence[prefect.server.database.orm_models.Variable]` is not assignable to declared return type `list[prefect.server.schemas.core.Variable]` [bad-return]
- ERROR src/prefect/server/api/work_queues.py:190:16-25: Returned type `Sequence[FlowRun]` is not assignable to declared return type `list[FlowRunResponse]` [bad-return]
+ ERROR src/prefect/server/api/work_queues.py:190:16-25: Returned type `Sequence[FlowRun]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/work_queues.py:209:12-21: Returned type `Sequence[FlowRun]` is not assignable to declared return type `list[FlowRunResponse]` [bad-return]
+ ERROR src/prefect/server/api/work_queues.py:209:12-21: Returned type `Sequence[FlowRun]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/workers.py:840:12-26: Returned type `Sequence[WorkerFlowRunResponse]` is not assignable to declared return type `list[WorkerFlowRunResponse]` [bad-return]
+ ERROR src/prefect/server/api/workers.py:840:12-26: Returned type `Sequence[Unknown]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/api/workers.py:935:52-56: Default `None` is not assignable to parameter `work_queues` with type `WorkQueueFilter` [bad-function-definition]
- ERROR src/prefect/server/api/workers.py:1166:16-1172:10: Returned type `Sequence[Worker]` is not assignable to declared return type `list[WorkerResponse]` [bad-return]
+ ERROR src/prefect/server/api/workers.py:1166:16-1172:10: Returned type `Sequence[Worker]` is not assignable to declared return type `list[Unknown]` [bad-return]
- ERROR src/prefect/server/models/deployments.py:155:74-84: Argument `Deployment | DeploymentCreate` is not assignable to parameter `deployment` with type `Deployment` in function `with_system_labels_for_deployment` [bad-argument-type]
- ERROR src/prefect/server/models/workers.py:986:55-81: `int` is not assignable to dict key `heartbeat_interval_seconds` with type `WorkerStatus | datetime` [bad-assignment]
- ERROR src/prefect/server/orchestration/core_policy.py:648:13-41: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:706:17-46: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:741:20-47: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:742:9-37: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:822:17-45: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:867:24-51: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:971:21-49: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:974:23-37: Argument `BaseModel | Unknown` is not assignable to parameter `state` with type `State | None` in function `prefect.server.orchestration.rules.BaseOrchestrationRule.reject_transition` [bad-argument-type]
- ERROR src/prefect/server/orchestration/core_policy.py:990:21-50: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:994:34-63: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:995:35-53: Object of class `BaseModel` has no attribute `id` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1023:21-49: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1024:30-58: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1125:21-43: Object of class `BaseModel` has no attribute `message` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1126:18-37: Object of class `BaseModel` has no attribute `data` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1172:20-48: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1178:25-47: Object of class `BaseModel` has no attribute `message` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1179:22-41: Object of class `BaseModel` has no attribute `data` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1202:16-45: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1209:12-32: Object of class `BaseModel` has no attribute `name` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1239:16-34: Object of class `BaseModel` has no attribute `name` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1269:16-44: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1270:13-41: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1271:17-44: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1302:26-53: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1338:16-44: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1339:13-41: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1340:17-44: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1361:29-48: Object of class `BaseModel` has no attribute `name` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1367:16-40: Object of class `BaseModel` has no attribute `is_running` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1374:20-48: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
- ERROR src/prefect/server/orchestration/core_policy.py:1386:12-40: Object of class `BaseModel` has no attribute `state_details` [missing-attribute]
... (truncated 82 lines) ...
freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/data/converter/converter.py:298:13-30: Cannot set item in `Series` [unsupported-operation]
- ERROR freqtrade/data/converter/converter.py:300:13-30: Cannot set item in `Series` [unsupported-operation]
- ERROR freqtrade/data/converter/orderflow.py:116:13-44: `Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64` is not assignable to `datetime` [bad-assignment]
- ERROR freqtrade/data/converter/orderflow.py:118:16-30: Object of class `bool` has no attribute `any` [missing-attribute]
- ERROR freqtrade/data/converter/orderflow.py:124:25-76: Object of class `bool` has no attribute `any` [missing-attribute]
+ ERROR freqtrade/data/converter/orderflow.py:131:38-48: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:131:77-91: Cannot index into `_AtIndexerFrame` [bad-index]
+ ERROR freqtrade/data/converter/orderflow.py:134:30-45: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:142:30-48: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:150:30-49: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:153:30-61: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:157:30-61: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:169:30-48: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:170:30-48: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:172:30-42: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:173:30-42: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
+ ERROR freqtrade/data/converter/orderflow.py:174:30-44: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
- ERROR freqtrade/data/entryexitanalysis.py:58:57-87: Cannot index into `_LocIndexerFrame[DataFrame]` [bad-index]
+ ERROR freqtrade/data/converter/orderflow.py:175:34-46: Cannot index into `_AtIndexerFrame` [bad-index]
+ ERROR freqtrade/data/converter/orderflow.py:175:63-75: Cannot index into `_AtIndexerFrame` [bad-index]
+ ERROR freqtrade/data/converter/orderflow.py:177:30-51: Cannot set item in `_AtIndexerFrame` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:363:13-35: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:368:13-40: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:369:13-39: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:373:9-36: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:376:13-39: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:383:17-40: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:387:9-36: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:390:9-35: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:393:9-37: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/freqai/data_drawer.py:396:9-35: Cannot set item in `_iLocIndexerFrame[DataFrame]` [unsupported-operation]
- ERROR freqtrade/optimize/optimize_reports/optimize_reports.py:307:84-88: Argument `Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64 | tuple[Hashable, ...]` is not assignable to parameter `first_column` with type `list[str] | str` in function `_generate_result_line` [bad-argument-type]
+ ERROR freqtrade/optimize/optimize_reports/optimize_reports.py:433:21-46: Argument `Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR freqtrade/optimize/optimize_reports/optimize_reports.py:434:23-49: Argument `Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR freqtrade/plot/plotting.py:187:17-97: Cannot index into `_LocIndexerFrame[DataFrame]` [bad-index]
- ERROR freqtrade/plot/plotting.py:188:17-96: Cannot index into `_LocIndexerFrame[DataFrame]` [bad-index]
pwndbg (https://github.com/pwndbg/pwndbg)
+ ERROR pwndbg/aglib/arch_mod.py:248:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/arch_mod.py:441:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/arch_mod.py:454:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/arch_mod.py:454:47-69: Object of class `object` has no attribute `name` [missing-attribute]
+ ERROR pwndbg/aglib/arch_mod.py:465:5-22: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/disasm/arm.py:277:38-49: Argument `int | None` is not assignable to parameter `cpsr_value` with type `int` in function `itstate_from_cpsr` [bad-argument-type]
+ ERROR pwndbg/aglib/argv.py:54:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/asm.py:30:31-48: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:53:46-63: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:55:46-63: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:225:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:227:29-46: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:232:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:235:40-57: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:239:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/commpage.py:241:40-57: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/disasm/assistant.py:214:75-95: Argument `int | None` is not assignable to parameter `number` with type `SupportsIndex` in function `hex` [bad-argument-type]
- ERROR pwndbg/aglib/disasm/disassembly.py:91:35-63: No matching overload found for function `dict.pop` called with arguments: (int | None, None) [no-matching-overload]
- ERROR pwndbg/aglib/disasm/disassembly.py:92:45-73: No matching overload found for function `dict.pop` called with arguments: (int | None, None) [no-matching-overload]
- ERROR pwndbg/aglib/disasm/disassembly.py:244:37-44: Argument `int | None` is not assignable to parameter `address` with type `int` in function `pwndbg.aglib.memory.peek` [bad-argument-type]
- ERROR pwndbg/aglib/disasm/disassembly.py:253:37-44: Argument `int | None` is not assignable to parameter `address` with type `int` in function `get_one_instruction` [bad-argument-type]
- ERROR pwndbg/aglib/disasm/disassembly.py:273:37-44: Argument `int | Unknown | None` is not assignable to parameter `address` with type `int` in function `pwndbg.aglib.memory.peek` [bad-argument-type]
- ERROR pwndbg/aglib/disasm/disassembly.py:276:32-39: Argument `int | Unknown | None` is not assignable to parameter `address` with type `int` in function `get_one_instruction` [bad-argument-type]
- ERROR pwndbg/aglib/disasm/x86.py:272:68-88: Argument `int | None` is not assignable to parameter `addr` with type `int` in function `pwndbg.aglib.memory.read_pointer_width` [bad-argument-type]
+ ERROR pwndbg/aglib/elf.py:84:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/elf.py:421:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/elf.py:527:53-70: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:64:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:67:7-24: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:90:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:93:7-24: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:249:43-60: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/godbg.py:261:21-38: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/heap/ptmalloc.py:1955:24-50: `-` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/heap/ptmalloc.py:1956:20-50: `-` is not supported between `None` and `int` [unsupported-operation]
+ ERROR pwndbg/aglib/ipi_helpers.py:19:8-25: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/ipi_helpers.py:20:6-23: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/ipi_helpers.py:21:6-23: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/kernel/__init__.py:282:20-29: `+` is not supported between `None` and `Literal[1]` [unsupported-operation]
- ERROR pwndbg/aglib/kernel/__init__.py:286:22-37: `+` is not supported between `None` and `int` [unsupported-operation]
+ ERROR pwndbg/aglib/kernel/__init__.py:278:12-29: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:279:13-30: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:281:12-29: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/kernel/__init__.py:443:20-53: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR pwndbg/aglib/kernel/__init__.py:556:20-68: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR pwndbg/aglib/kernel/__init__.py:314:58-75: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:433:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:443:20-37: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:556:20-37: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:561:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:563:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:570:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:572:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:574:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:581:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:583:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/kernel/__init__.py:779:17-51: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR pwndbg/aglib/kernel/__init__.py:767:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:779:17-34: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/__init__.py:869:12-29: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/bpf.py:210:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/dmabuf.py:9:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/dmabuf.py:94:36-53: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/dmabuf.py:97:52-69: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kallsyms.py:215:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:38:22-39: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:59:22-39: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:78:31-48: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:84:36-53: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:103:22-39: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:104:33-50: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:117:37-54: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:131:22-39: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:141:72-89: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:144:68-85: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:149:28-45: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:188:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:192:68-85: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:193:64-81: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:197:69-86: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/kmod.py:205:53-70: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:31:19-36: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:42:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:68:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:90:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:110:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:146:19-36: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:160:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:162:11-28: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:169:14-31: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:254:26-43: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:257:31-48: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:281:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:363:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:368:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:422:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:473:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:478:23-40: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:510:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:652:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:725:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:762:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:777:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:780:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:825:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:866:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:929:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:982:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:1019:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/ktask.py:1030:27-44: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/mapletree.py:17:19-36: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:66:24-41: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:71:21-38: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:332:54-71: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:435:74-91: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:495:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:508:27-44: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:515:27-44: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:523:15-32: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:564:17-34: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:564:44-61: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:596:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:603:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:635:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:642:34-51: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:672:28-45: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:696:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:699:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:716:34-51: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:725:34-51: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:757:27-44: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:851:29-46: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:871:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:891:17-34: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:891:44-61: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:925:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:928:25-42: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:937:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:941:42-59: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/paging.py:942:21-38: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/slab.py:467:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/slab.py:495:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/slab.py:565:15-32: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/symbol.py:65:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/symbol.py:706:16-33: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/kernel/vmmap.py:201:20-61: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR pwndbg/aglib/kernel/vmmap.py:201:20-37: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:234:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:235:20-37: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:245:24-41: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:316:40-57: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:348:40-57: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:377:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:379:10-27: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:385:24-41: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:426:17-34: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:456:8-25: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/kernel/vmmap.py:467:43-60: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/memory.py:201:12-29: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/memory.py:201:48-65: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/memory.py:244:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/memory.py:350:23-40: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/memory.py:351:24-41: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/nearpc.py:452:14-16: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR pwndbg/aglib/nearpc.py:450:14-31: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/next.py:286:12-29: `<=` is not supported between `int` and `None` [unsupported-operation]
- ERROR pwndbg/aglib/next.py:286:12-29: `<` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/next.py:301:16-38: `<=` is not supported between `int` and `None` [unsupported-operation]
- ERROR pwndbg/aglib/next.py:301:16-38: `<` is not supported between `None` and `int` [unsupported-operation]
+ ERROR pwndbg/aglib/next.py:62:51-68: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:132:27-44: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:242:31-48: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:253:30-47: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:255:34-51: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:284:10-27: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:290:12-29: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/next.py:308:26-43: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/objc.py:491:11-28: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/objc.py:1075:22-29: Argument `int | None` is not assignable to parameter `addr` with type `int` in function `Object.__init__` [bad-argument-type]
- ERROR pwndbg/aglib/objc.py:1076:24-31: Argument `int | None` is not assignable to parameter `ptr` with type `int` in function `Selector.__init__` [bad-argument-type]
+ ERROR pwndbg/aglib/objc.py:1064:12-29: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/objc.py:1072:19-36: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/objc.py:1073:19-36: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:142:24-41: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
- ERROR pwndbg/aglib/onegadget.py:392:61-97: `+` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/onegadget.py:394:43-79: `+` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/onegadget.py:394:86-122: `+` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/onegadget.py:441:61-97: `+` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/onegadget.py:443:43-79: `+` is not supported between `None` and `int` [unsupported-operation]
- ERROR pwndbg/aglib/onegadget.py:443:86-122: `+` is not supported between `None` and `int` [unsupported-operation]
+ ERROR pwndbg/aglib/onegadget.py:392:72-89: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:394:54-71: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:394:97-114: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:441:72-89: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:443:54-71: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/onegadget.py:443:97-114: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/proc.py:157:16-33: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:76:38-55: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:84:34-51: No attribute `regs` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:88:28-45: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:158:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:161:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:165:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:170:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:174:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:178:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
+ ERROR pwndbg/aglib/regs_mod.py:182:25-42: No attribute `arch` in module `pwndbg.aglib` [missing-attribute]
... (truncated 1008 lines) ...``` |
|
The proposed rule would be very similar to this rule that already exists: https://pyrefly.org/en/docs/error-kinds/#implicit-import |
trigger GitHub actions
6edf11e to
daa0ce3
Compare
Primer Diff Classification❌ 34 regression(s) | ➖ 2 neutral | ❓ 1 needs review | 37 project(s) total | +1790, -428 errors 34 regression(s) across cloud-init, mkosi, steam.py, jax, spark, prefect, pwndbg, comtypes, starlette, mongo-python-driver, schemathesis, beartype, cibuildwheel, pytest-autoprofile, hydra-zen, zulip, pandas-stubs, hydpy, pandas, pytest-robotframework, meson, numpy-stl, core, trio, sphinx, xarray, spack, itsdangerous, pydantic, boostedblob, discord.py, optuna, kopf, django-modern-rest. error kinds:
Detailed analysis❌ Regression (34)cloud-init (+62, -4)
mkosi (+7)
steam.py (+31)
jax (+241)
spark (+23, -19)
prefect (+19, -201)
pwndbg (+455, -59)
Per-category reasoning:
comtypes (+11, -13)
Per-category reasoning:
starlette (+25)
mongo-python-driver (+21, -5)
Per-category reasoning:
schemathesis (+1, -2)
The removed Overall: one real error retained with slightly degraded message quality, and one true positive removed (regression).
beartype (+31, -14)
Per-category reasoning:
cibuildwheel (+3)
The PR's new logic correctly prevents runtime imports of Mypy and pyright both handle this correctly: they make Per-category reasoning:
pytest-autoprofile (+182, -21)
Per-category reasoning:
hydra-zen (+2, -1)
zulip (+23)
pandas-stubs (+62)
Per-category reasoning:
hydpy (+1)
pandas (+8, -17)
pytest-robotframework (+1)
meson (+267, -21)
The meson project's The 252 Per the typing spec (https://typing.readthedocs.io/en/latest/spec/directives.html#type-checking), type checkers should evaluate TYPE_CHECKING as True, meaning all definitions under it should be visible. The PR's approach of hiding these from non-TYPE_CHECKING importers is too strict and not supported by the spec or by mypy/pyright behavior. Per-category reasoning:
The problem is that the meson project uses numpy-stl (+3)
core (+27)
trio (+162, -2)
sphinx (+25)
The analysis correctly identifies the root cause and the cascading nature of the errors.
xarray (+4)
spack (+1, -7)
itsdangerous (+2)
pydantic (+6)
boostedblob (+5)
discord.py (+29, -17)
Since The 14 The 7 The 2 The 2 The 2 The The 12 removed The 5 removed Overall: 27 new errors are predominantly false positives from overly aggressive TYPE_CHECKING filtering (regressions), while 17 removed errors are genuine improvements. Net negative impact.
optuna (-4)
kopf (+25)
The analysis is logically consistent and factually accurate throughout.
django-modern-rest (+2)
➖ Neutral (2)freqtrade (+17, -19)
Per-category reasoning:
pandera (+3, -2)
❓ Needs Review (1)aiohttp (+3)
Suggested fixesSummary: The PR's type_checking_only export filtering has two critical bugs: (1) names defined in both if-TYPE_CHECKING and else branches are incorrectly marked type_checking_only because the else branch is pruned before definitions merge, and (2) TYPE_CHECKING-only names are invisible via module attribute access (module.Name) even in type annotation contexts, causing ~1500+ false positive errors across 30+ projects. 1. In
2. In the export filtering logic in
3. In
4. In
Was this helpful? React with 👍 or 👎 Classification by primer-classifier (37 LLM) |
Summary
Fixes #3629
Test Plan
cargo test