Skip to content

Commit ee96e3e

Browse files
committed
fix: lint
1 parent c965464 commit ee96e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unstructured_inference/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
@lru_cache(maxsize=1)
17-
def get_tempdir(dir: str) -> str:
17+
def _get_tempdir(dir: str) -> str:
1818
tempdir = Path(dir) / f"tmp/{os.getpgid(0)}"
1919
return str(tempdir)
2020

@@ -155,7 +155,7 @@ def INFERENCE_GLOBAL_WORKING_PROCESS_DIR(self) -> str:
155155
"""Path to Unstructured cache tempdir. Overrides TMPDIR, TEMP and TMP.
156156
Defaults to '{INFERENCE_GLOBAL_WORKING_DIR}/tmp/{os.getpgid(0)}'.
157157
"""
158-
default_tmpdir = get_tempdir(dir=self.INFERENCE_GLOBAL_WORKING_DIR)
158+
default_tmpdir = _get_tempdir(dir=self.INFERENCE_GLOBAL_WORKING_DIR)
159159
tmpdir = self._get_string("INFERENCE_GLOBAL_WORKING_PROCESS_DIR", default_tmpdir)
160160
if tmpdir == "":
161161
tmpdir = default_tmpdir

0 commit comments

Comments
 (0)