nbsync 0.3.10__py3-none-any.whl → 0.3.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nbsync/cell.py CHANGED
@@ -105,7 +105,7 @@ def get_source(
105
105
 
106
106
 
107
107
  def _add_prompt(source: str) -> str:
108
- lines = []
108
+ lines: list[str] = []
109
109
  for line in source.splitlines():
110
110
  if not line:
111
111
  lines.append("")
nbsync/logger.py CHANGED
@@ -7,7 +7,9 @@ from typing import Any
7
7
  _logger = logging.getLogger("nbsync")
8
8
 
9
9
 
10
- def set_logger(logger: Logger | LoggerAdapter | None = None) -> Logger | LoggerAdapter:
10
+ def set_logger(
11
+ logger: Logger | LoggerAdapter[Logger] | None = None,
12
+ ) -> Logger | LoggerAdapter[Logger]:
11
13
  global _logger # noqa: PLW0603
12
14
 
13
15
  if logger:
nbsync/sync.py CHANGED
@@ -72,7 +72,7 @@ def update_notebooks(
72
72
 
73
73
  if url not in notebooks:
74
74
  if url == ".md":
75
- notebooks[url] = Notebook(nbformat.v4.new_notebook())
75
+ notebooks[url] = Notebook(nbformat.v4.new_notebook()) # pyright: ignore[reportUnknownMemberType]
76
76
  else:
77
77
  try:
78
78
  notebooks[url] = Notebook(store.read(url))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nbsync
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution
5
5
  Keywords: jupyter,notebook,documentation,markdown,python,visualization,dynamic-execution,real-time-sync
6
6
  Author: daizutabi
@@ -0,0 +1,10 @@
1
+ nbsync/__init__.py,sha256=3NuWx9D0LcBnXjEKrC-uypNDOz8rLWXI7mIjdN9xSeE,126
2
+ nbsync/cell.py,sha256=58RkBXzcYajMJzFbUBfdtxXScfkl642B-dckel5-5ZA,4909
3
+ nbsync/logger.py,sha256=4nXvoy5_5Xd2uXCiT_0u1LqOI6L5ZgV4PFCCmy3leVM,759
4
+ nbsync/markdown.py,sha256=6jDaDtCEkDLsukInF0EnauJ2pUki6nVswjyu3Zg2AUE,3832
5
+ nbsync/notebook.py,sha256=4F3V1KDHfJnIR5ZSb1xWdN9JGiC6mWUVimXXK1BFsbc,1450
6
+ nbsync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ nbsync/sync.py,sha256=x7fsWjfKiQbenXXx9v9BYtfpx7pcmAlHj3Fo9PoHGnI,4034
8
+ nbsync-0.3.11.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
9
+ nbsync-0.3.11.dist-info/METADATA,sha256=BSEoL2e5Tciq1-GhQIobEdgkGKi7gaMPzQG_VB3Ftak,7105
10
+ nbsync-0.3.11.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.9
2
+ Generator: uv 0.8.13
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- nbsync/__init__.py,sha256=dcdb96c7d0f42dc0675e310aac2faeca93433b3f2b2d65c8ee622374df7149e1,126
2
- nbsync/cell.py,sha256=37541e4a5e0de8deddbcb1fd3ea1847d0d442a6b9f55d966076ffeee363e585e,4898
3
- nbsync/logger.py,sha256=b27351aa2f711128f807e67d1907df081960a9e56e8efb97b81bde58079b2163,736
4
- nbsync/markdown.py,sha256=ea30da0ed0849032ecba42271741276ae276a54922ea756cc23caedd98360141,3832
5
- nbsync/notebook.py,sha256=e05dd5d4a0c77c99c84796526f5c5674df491a20ba9965158a65d72b5045b1b7,1450
6
- nbsync/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
7
- nbsync/sync.py,sha256=bc84b39fc0ff0da7be8dd2400519efbc3d3668bdf96d8216c79d8e8a700e455a,3990
8
- nbsync-0.3.10.dist-info/WHEEL,sha256=2b400f346628f0064eb5bbf656b39df8dfcb092437ab08244409d295749b81a3,78
9
- nbsync-0.3.10.dist-info/METADATA,sha256=b650486e181ebc68c8ce5321831e4ae194591bd34dfb3874e225403559c7c920,7105
10
- nbsync-0.3.10.dist-info/RECORD,,