PyPI / platformdirs / 4.13.3
platformdirs 4.13.3
- Source
- https://github.com/tox-dev/platformdirs
- Tag scanned
4.13.3- Compared with
4.13.2(0 signals introduced since)- Files
- 33 scanned, 6 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 5 info
- Scan time
- 5.9 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 5 of 5 warn and critical signals; 5 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-16 17:11
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
likely benign RST doc showing a python -c invocation of platformdirs to print a user cache directory on Windows.
Reasoning
This is a documentation example showing a Windows shell session that sets an environment variable and runs python -c to print a cache path. The 'python' name matching a system command is just the normal invocation of the interpreter in a how-to, not a PATH hijack setup. No download or dropper behavior is present.
-
dismissed Example output path in a Windows-style docs snippet, misdetected as an obfuscated command.
Reasoning
The flagged 'backslash escapes' are simply the Windows path separators in an example output line (X:\appdata\Acme\MyApp\Cache). The heuristic misread a Windows path as an obfuscated command name. No command is hidden.
-
= =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 in a dict and presumably restoring them afterward. Reading and writing class attributes by name via vars() is a normal monkeypatching technique in test utilities for a library like platformdirs.
-
= # ty: ignore[invalid-assignment] dellikely benign Test code temporarily swapping builtins.__import__ to simulate import conditions for platformdirs modules.Reasoning
This is a test that replaces builtins.__import__ with a fake import to simulate a platform or missing-module condition, deleting platformdirs modules from sys.modules to force re-import. It is scoped to a test and the snippet shows a restore path nearby. Patching __import__ is unusual but legitimate for testing import-time behavior; it is not malicious.
-
# restore original modules = =likely benign Test cleanup restoring builtins.__import__ and sys.modules after an import-simulation test.Reasoning
This is the restore half of the same test: it reinstates the original builtins.__import__ and re-populates sys.modules with the saved module objects. This confirms the earlier patch is temporary and reverted, consistent with benign test isolation.
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.
&&