knify 1.8.53__tar.gz → 1.8.54__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {knify-1.8.53 → knify-1.8.54}/PKG-INFO +1 -1
- {knify-1.8.53 → knify-1.8.54}/knify/excelutil.py +2 -2
- {knify-1.8.53 → knify-1.8.54}/knify/help.py +1 -1
- {knify-1.8.53 → knify-1.8.54}/knify.egg-info/PKG-INFO +1 -1
- {knify-1.8.53 → knify-1.8.54}/LICENSE +0 -0
- {knify-1.8.53 → knify-1.8.54}/README.md +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/__init__.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/dateutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/fileutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/listutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/logger.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/objutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/threadutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify/warnutil.py +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify.egg-info/SOURCES.txt +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify.egg-info/dependency_links.txt +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify.egg-info/requires.txt +0 -0
- {knify-1.8.53 → knify-1.8.54}/knify.egg-info/top_level.txt +0 -0
- {knify-1.8.53 → knify-1.8.54}/setup.cfg +0 -0
- {knify-1.8.53 → knify-1.8.54}/setup.py +0 -0
@@ -24,7 +24,7 @@ class HeaderBuilder:
|
|
24
24
|
|
25
25
|
def set_names(self, names: list[str] = None):
|
26
26
|
for index_, name in enumerate(names):
|
27
|
-
self.headers.append(Header(
|
27
|
+
self.headers.append(Header(index_, name, self.default_transformer))
|
28
28
|
return self
|
29
29
|
|
30
30
|
def set_transformer(self, name: str, transformer: Callable[[object], object] = None):
|
@@ -33,7 +33,7 @@ class HeaderBuilder:
|
|
33
33
|
header.transformer = transformer
|
34
34
|
return self
|
35
35
|
|
36
|
-
def append(self, index: int
|
36
|
+
def append(self, index: int, name: str | None, transformer: Callable[[object], object] = None):
|
37
37
|
target_tindex = index if index is not None else len(self.headers)
|
38
38
|
target_transformer = transformer if transformer is not None else self.default_transformer
|
39
39
|
self.headers.append(Header(target_tindex, name, target_transformer))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|