File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1212# All configuration values have a default; values that are commented out
1313# serve to show the default.
1414
15- from typing import Dict
1615import sys
1716import os
1817from unittest .mock import Mock as MagicMock
@@ -231,7 +230,7 @@ def __getattr__(cls, name):
231230
232231# -- Options for LaTeX output ---------------------------------------------
233232
234- latex_elements : Dict [str , str ] = {
233+ latex_elements : dict [str , str ] = {
235234 # The paper size ('letterpaper' or 'a4paper').
236235 #'papersize': 'letterpaper',
237236 # The font size ('10pt', '11pt' or '12pt').
Original file line number Diff line number Diff line change 5555 " enc = codec.encode(a)\n " ,
5656 " print('decode')\n " ,
5757 " %timeit codec.decode(enc)\n " ,
58- " print('size : {:,}'.format( len(enc)) )\n " ,
59- " print('size (zstd 1): {:,}'.format( len(zstd1.encode(enc))) )\n " ,
60- " print('size (zstd 5): {:,}'.format( len(zstd5.encode(enc))) )\n " ,
61- " print('size (zstd 9): {:,}'.format( len(zstd9.encode(enc))) )"
58+ " print(f 'size : {len(enc):,}' )\n " ,
59+ " print(f 'size (zstd 1): {len(zstd1.encode(enc)):,}' )\n " ,
60+ " print(f 'size (zstd 5): {len(zstd5.encode(enc)):,}' )\n " ,
61+ " print(f 'size (zstd 9): {len(zstd9.encode(enc)):,}' )"
6262 ]
6363 },
6464 {
Original file line number Diff line number Diff line change 1- from typing import Optional , Callable , TYPE_CHECKING
1+ from typing import Optional , TYPE_CHECKING
2+ from collections .abc import Callable
23import zlib
34
45import numpy as np
Original file line number Diff line number Diff line change 33
44from importlib .metadata import entry_points
55import logging
6- from typing import Dict , TYPE_CHECKING
6+ from typing import TYPE_CHECKING
77
88from numcodecs .abc import Codec
99
1010if TYPE_CHECKING :
1111 from importlib .metadata import EntryPoints
1212
1313logger = logging .getLogger ("numcodecs" )
14- codec_registry : Dict [str , Codec ] = {}
15- entries : Dict [str , "EntryPoints" ] = {}
14+ codec_registry : dict [str , Codec ] = {}
15+ entries : dict [str , "EntryPoints" ] = {}
1616
1717
1818def run_entrypoints ():
You can’t perform that action at this time.
0 commit comments