PyPI / platformdirs / 4.13.5
platformdirs 4.13.5
- Source
- https://github.com/tox-dev/platformdirs
- Tag scanned
4.13.5- Compared with
4.13.4(0 signals introduced since)- Files
- 33 scanned, 6 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 5 info
- Scan time
- 5.2 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 5 of 5 warn and critical signals; 5 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-21 21:55
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
dismissed RST doc showing a Windows console session calling python to print a platformdirs cache path.
Reasoning
This is a documentation example showing a Windows cmd session setting an env var and running python -c to print a path. The 'redirect writes to python' flag is a false positive from the embedded bash parser misreading the '>' prompt marker in an RST console transcript. No dropper or PATH hijack setup is present.
-
dismissed Doc output line containing a Windows filesystem path, misread as an obfuscated command name.
Reasoning
The flagged 'backslash-escape' command name is just a Windows path (X:\appdata\Acme\MyApp\Cache) shown as program output in a docs transcript. The escape-sequence heuristic misfires on Windows paths; there is no hidden command.
-
= =likely benign Test utility that saves and overrides PlatformDirs class attributes with setattr for mocking.Reasoning
This is a test helper that temporarily patches PlatformDirs attributes via setattr, saving originals via vars() for restoration. That is a standard monkeypatch-and-restore pattern in a testing module; it is dynamic but scoped and benign in context.
-
= # ty: ignore[invalid-assignment] dellikely benign Test fixture that temporarily swaps builtins.__import__ and clears sys.modules to test imports.Reasoning
Test code replaces builtins.__import__ with a fake importer to simulate missing or altered platform modules, and deletes sys.modules entries to force reimport. Global builtin patching is unusual but is a known test technique for import-path testing, and the code is restored in a paired block. Not a supply-chain attack pattern.
-
# restore original modules = =likely benign Restores original builtins.__import__ and sys.modules after an import-mocking test.Reasoning
This is the restore half of the same test fixture, reinstating the original builtins.__import__ and sys.modules entries. It is the cleanup of a benign, scoped import-mocking test.
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.
&&