Skip to content

Commit 0e25205

Browse files
committed
Fix more nits and typos
1 parent a1f49bd commit 0e25205

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cognite/extractorutils/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _initial_load_config(self, override_path: str | None = None) -> None:
136136
Load a configuration file.
137137
138138
Either from the specified path, or from a path specified by the user in a command line arg. Will quit further
139-
execution of no path is given.
139+
execution if no path is specified.
140140
141141
Args:
142142
override_path: Optional override for file path, ie don't parse command line arguments

cognite/extractorutils/configtools/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _to_snake_case(dictionary: dict[str, Any], case_style: str) -> dict[str, Any
2929
"""
3030
Ensure that all keys in the dictionary follows the snake casing convention.
3131
32-
This function will recursively fix any list or dictionaries.
32+
This function will recursively fix any list or dictionaries. The input dictionary is never modified in place.
3333
3434
Args:
3535
dictionary: Dictionary to update.

cognite/extractorutils/unstable/configuration/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class ConnectionConfig(ConfigModel):
207207
"""
208208
Configuration for connecting to a Cognite Data Fusion project.
209209
210-
This configuration includes the project name, base URL, integration name, and authentication details, ase well as
210+
This configuration includes the project name, base URL, integration name, and authentication details, as well as
211211
optional connection parameters.
212212
213213
This configuration is common for all extractors.

cognite/extractorutils/uploader/upload_failure_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This module provides a mechanism to handle file upload failures by logging details to a JSON Lines file.
2+
This module provides a mechanism to handle file upload failures by logging details to a newline delimited JSON file.
33
"""
44

55
from collections.abc import Iterator
@@ -26,7 +26,7 @@ def __iter__(self) -> Iterator[list[str]]:
2626

2727
class FileFailureManager:
2828
"""
29-
A class to manage file upload failures by logging them to a JSON Lines file.
29+
A class to manage file upload failures by logging them to a newline delimited JSON file.
3030
"""
3131

3232
MAX_QUEUE_SIZE = 500
@@ -81,7 +81,7 @@ def add(self, file_name: str, error_reason: str) -> None:
8181

8282
def write_to_file(self) -> None:
8383
"""
84-
Flushes the current failure logs to a JSON Lines file and clears the queue.
84+
Flushes the current failure logs to a newline delimited JSON file and clears the queue.
8585
"""
8686
if len(self) == 0:
8787
return

0 commit comments

Comments
 (0)