Metadata-Version: 2.4
Name: nbformat-types
Version: 0.1
Summary: Types for notebook formats.
Project-URL: Source, https://github.com/flying-sheep/nbformat-types
Author: Philipp Angerer
License-Expression: BSD-3-Clause
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Description-Content-Type: text/x-rst

``nbformat`` types
==================

Re-export TypedDict versions of (currently) nbformat schemas
``v3_0``, ``v4_0``\ —\ ``v4_5`` (the latter also as ``current``).

Usage:

..  code-block:: python

    from typing import cast, TYPE_CHECKING
    import nbformat
    if TYPE_CHECKING:
        from nbformat_types import Document  # currently v4

    with open("Notebook.ipynb") as f:
        doc = cast(Document, nbformat.read(f, 4))
