topmark.filetypes.instances¶
topmark / filetypes / instances
Built-in and plugin-provided file type declarations for the base registry.
This module aggregates FileType
definitions from TopMark's built-in file type modules and from the
topmark.filetypes entry point group. The resulting base registry is built
lazily on first access and cached for reuse.
Notes
- Built-in file type modules are imported lazily.
- Plugin file types are discovered through the
topmark.filetypesentry point group. - The returned base registry is a plain
dictand should be treated as immutable by callers. - This module exposes the base registry only (built-ins + entry
points). For the effective composed view used by the public registry
facade, use
topmark.registry.filetypes.FileTypeRegistry.as_mapping. - Overlay mutations belong in
topmark.registry, not in this module.
get_base_file_type_registry
cached
¶
Return and cache the base file type registry.
The base registry contains built-in and plugin-provided file types keyed by
FileType.local_key.
Returns:
| Type | Description |
|---|---|
dict[str, FileType]
|
Cached mapping of file type local key to |
Notes
For the effective composed registry (including overlay mutations used by
tests and advanced callers), use
topmark.registry.filetypes.FileTypeRegistry.as_mapping.