anyio 4.15.1
- Source
- https://github.com/agronholm/anyio
- Tag scanned
4.15.1- Compared with
4.15.0(0 signals introduced since)- Files
- 105 scanned, 3 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 7 info
- Scan time
- 5.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 7 of 7 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 18:12
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= . = = +likely benign Lazy importer uses caller frame globals to install module __getattr__.Reasoning
sys._getframe(1).f_globals is the standard idiom for installing a module-level lazy importer; the critical severity comes from the anti-analysis heuristic matching sys.exit/exec/eval elsewhere in the file, which is a weak co-signal here. Legitimate anyio code.
-
= . = + dellikely benign Fixes package names by reading the caller's module globals.Reasoning
Retrieves the calling module's globals to prefix package names and delete the helper function; ordinary module-introspection code in a well-known library.
-
= . = dellikely benign Sets deprecated aliases using caller frame globals.Reasoning
Reads caller globals to register deprecated aliases via a module __getattr__; standard library-style pattern with no payload or obfuscation.
-
= assert : =likely benign Parses a module source file into an AST via compile with PyCF_ONLY_AST.Reasoning
compile is used with ast.PyCF_ONLY_AST to parse a module's source file for static analysis of re-exports, not to execute it. The non-literal argument is expected for this purpose and the output is only parsed into an AST.
-
=likely benign Compiles a code string for running in a subinterpreter using _interpqueues and pickle.Reasoning
The compiled string is a source snippet that imports _interpqueues to run a function in a subinterpreter, which is the documented way anyio runs code in subinterpreters. The pickle co-import is for passing function payloads between interpreters, a legitimate mechanism here. The heuristic matches the shape but the context is a known library feature.
-
return >= :likely benign Test helper that inspects a generator frame to verify no lingering references.Reasoning
Test helper returning sys._getframe(1).f_generator to check for lingering references to generators; used for resource-leak testing, not malicious.
-
returnlikely benign Test helper capturing the caller frame for reference checks.Reasoning
Test helper returning the caller frame to check references in tests; standard test-harness introspection with no malicious behavior.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&