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 12
12
# All configuration values have a default; values that are commented out
13
13
# serve to show the default.
14
14
15
- from typing import Dict
16
15
import sys
17
16
import os
18
17
from unittest .mock import Mock as MagicMock
@@ -231,7 +230,7 @@ def __getattr__(cls, name):
231
230
232
231
# -- Options for LaTeX output ---------------------------------------------
233
232
234
- latex_elements : Dict [str , str ] = {
233
+ latex_elements : dict [str , str ] = {
235
234
# The paper size ('letterpaper' or 'a4paper').
236
235
#'papersize': 'letterpaper',
237
236
# The font size ('10pt', '11pt' or '12pt').
Original file line number Diff line number Diff line change 55
55
" enc = codec.encode(a)\n " ,
56
56
" print('decode')\n " ,
57
57
" %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)):,}' )"
62
62
]
63
63
},
64
64
{
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
2
3
import zlib
3
4
4
5
import numpy as np
Original file line number Diff line number Diff line change 3
3
4
4
from importlib .metadata import entry_points
5
5
import logging
6
- from typing import Dict , TYPE_CHECKING
6
+ from typing import TYPE_CHECKING
7
7
8
8
from numcodecs .abc import Codec
9
9
10
10
if TYPE_CHECKING :
11
11
from importlib .metadata import EntryPoints
12
12
13
13
logger = 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" ] = {}
16
16
17
17
18
18
def run_entrypoints ():
You can’t perform that action at this time.
0 commit comments