Repository navigation
architecture(docs): Clarify lazy root imports - #208
Merged
Merged
Conversation
why: The architecture guide stated that importing libvt loads emulation, input, and formatting modules, contradicting PEP 562 lazy root exports in libvt.__init__ and docs/project/public-api.md. what: - Describe PEP 562 lazy root resolution, Terminal/render/strip versus Snapshot and Screen module loading, cold pytest11 discovery, and aio and contrib boundaries in docs/topics/architecture.md - Align architecture module summaries with views, snapshot (Snapshot, SyncToken, ScreenDelta), format, recorder, aio, and contrib - Expand cold-subprocess import checks in tests/test_libvt.py for exact loaded module sets, first-access caching, strip, independent Snapshot and Screen loads, pytest11 entry points, and libvt.aio - Record the documentation update in CHANGES Fixes #201
35 of 38 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #201
Summary
docs/topics/architecture.mdto match PEP 562 lazy root exports (src/libvt/__init__.py) and post-core(refactor): Split views, snapshot, dispatch, recorder, target, and aio (#203) #204/docs(api): Add per-module pages and split aio #205 module boundaries (views,snapshot,format,recorder,aio/,contrib/): coldimport libvtloads only package metadata (__version__);Terminal,render, andstriploadlibvt.terminaland the emulation engine;SnapshotandScreenload Unicode tables (_ucd), grid storage, views, snapshots, and formatting withoutlibvt.terminalorlibvt.parser(Snapshotalso leaveslibvt.screenandlibvt.inputunloaded);pytest_plugin/pytest11entry points stay cold until fixture invocation;libvt.aiodefers POSIXpty/termiostoopen_pty().{mod}\libvt`with{doc}targets so strict and nitpicky Sphinx builds resolve cleanly againstdocs/api/libvt.md(:no-index:`).test_import_libvt_and_pytest_plugin_leave_subsystems_unloaded()intests/test_libvt.pyto 9 independent cold subprocess checks covering exact loadedlibvt.*module sets, first-accessvars(libvt)caching,strip, independentSnapshotvsScreen,pytest11entry points, andlibvt.aio.Verification
ty(3.12–3.15 +win323.12),pytest(1241 passed, 2 skipped), Sphinxdirhtml -Wand nitpicky-n(zero warnings on touched pages).adopt as is(Gates 1–4 PASS, new code 9.6/10, all applicable items 9.0–9.7/10).