Xuanwo
a653d861ec
fix(python): allow static diagnostic imports in Functions ( #5084 )
...
Functions previously rejected every `sys` or `importlib` import even
when the source only used a statically visible diagnostic. Allow exactly
`sys.stderr`, `sys.version_info`, and `importlib.metadata.version`, with
direct imports, `from` imports, and aliases treated identically whether
they appear at module level or inside the function or class body.
Every other use of a namespace-access module still fails at decoration.
The error now names the rejected operation, such as `sys.modules`, and
lists the supported diagnostic operations.
Tests package and execute the artifact offline for each import form, and
reject unsupported attributes, submodules, dynamic attribute access, and
rebinding. ENT-3918.
2026-11-18 16:15:42 +08:00
..
2026-10-26 23:31:19 +08:00
2026-05-15 12:56:29 -05:00
2026-10-27 14:32:09 +08:00
2026-10-13 19:59:25 -07:00
2026-11-03 18:31:46 +08:00
2026-11-13 02:05:09 +08:00
2026-11-11 10:08:13 +08:00
2026-11-13 04:03:04 +08:00
2026-10-25 09:50:27 +08:00
2026-11-16 18:56:39 +08:00
2026-11-12 01:19:05 -08:00
2026-11-14 10:48:26 +08:00
2026-10-23 02:44:48 +08:00
2025-01-29 08:27:07 -08:00
2026-11-11 23:32:19 -08:00
2026-11-03 14:12:15 +08:00
2026-10-23 03:24:23 +08:00
2026-11-17 10:57:56 -08:00
2026-11-03 18:31:46 +08:00
2026-10-23 02:46:06 +08:00
2026-10-29 13:56:27 +08:00
2026-10-23 02:45:51 +08:00
2026-11-03 18:31:46 +08:00
2026-11-03 16:08:15 +08:00
2026-11-03 16:08:15 +08:00
2026-11-03 06:08:33 +08:00
2026-11-09 20:40:59 -05:00
2026-10-27 14:32:09 +08:00
2026-10-27 15:14:16 +08:00
2026-11-15 02:05:06 -08:00
2026-11-14 22:30:47 +08:00
2026-11-15 01:21:28 -08:00
2026-11-14 10:35:54 +08:00
2026-11-18 16:15:42 +08:00
2026-11-11 22:56:36 -08:00
2026-07-13 12:28:33 -07:00
2026-10-23 02:19:32 +08:00
2026-10-23 02:45:36 +08:00
2026-11-03 18:31:46 +08:00
2026-10-31 20:41:22 -07:00
2026-11-13 19:21:50 -08:00
2025-01-29 08:27:07 -08:00
2026-11-17 10:57:56 -08:00
2026-11-15 00:50:58 -08:00
2026-11-13 19:21:29 -08:00
2026-11-13 19:21:29 -08:00
2026-11-05 16:54:23 +08:00
2026-07-30 15:20:47 -07:00
2026-09-15 17:10:49 +08:00
2026-11-15 01:21:28 -08:00
2026-06-11 08:06:04 -07:00
2026-10-29 18:10:50 +08:00
2026-10-22 15:41:30 -07:00
2026-10-24 07:13:09 +08:00
2026-10-23 03:23:21 +08:00
2026-11-02 08:50:36 +08:00
2026-11-03 18:31:46 +08:00
2026-05-16 23:12:55 -07:00
2026-10-23 03:24:23 +08:00
2026-10-23 02:46:34 +08:00
2026-11-03 22:04:10 +08:00
2026-11-11 10:08:13 +08:00
2026-11-03 18:31:46 +08:00
2026-11-17 10:57:56 -08:00
2026-11-02 10:25:14 -08:00
2026-10-23 03:22:53 +08:00
2026-11-03 18:31:46 +08:00
2026-10-20 11:58:57 -05:00
2026-07-09 12:39:34 -07:00
2026-08-26 14:56:57 +08:00
2026-07-17 07:41:22 -07:00
2026-10-23 02:43:36 +08:00
2026-11-12 08:03:11 -08:00
2026-11-14 10:37:08 +08:00
2026-11-15 08:55:42 +08:00
2026-11-11 23:32:19 -08:00
2026-11-13 19:21:50 -08:00
2026-11-17 10:57:56 -08:00
2026-10-29 12:19:44 +08:00
2026-09-24 13:53:52 +05:30
2026-10-23 02:46:21 +08:00
2026-11-03 18:31:46 +08:00
2026-11-14 10:35:52 +08:00
2026-10-23 03:23:36 +08:00
2026-10-23 03:24:04 +08:00
2026-10-20 11:58:57 -05:00
2026-07-21 09:28:06 -07:00
2026-10-29 11:31:23 +08:00