trustgraph/trustgraph-flow/trustgraph/decoding/pdf
cybermaggedon cce3acd84f
fix: repair deferred imports to preserve module-level names for test patching (#831)
A previous commit moved SDK imports into __init__/methods and
stashed them on self, which broke @patch targets in 24 unit tests.

This fixes the approach: chunker and pdf_decoder use module-level
sentinels with global/if-None guards so imports are still deferred but
patchable. Google AI Studio reverts to standard module-level imports
since the module is only loaded when communicating with Gemini.
Keeps lazy loading on other imports.
2026-04-18 11:43:21 +01:00
..
__init__.py Feature/pkgsplit (#83) 2024-09-30 19:36:09 +01:00
__main__.py Feature/pkgsplit (#83) 2024-09-30 19:36:09 +01:00
pdf_decoder.py fix: repair deferred imports to preserve module-level names for test patching (#831) 2026-04-18 11:43:21 +01:00