mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix(logging): suppress reportPrivateUsage for the new _turn_on_ecs re-export
Both new cross-module uses of _turn_on_ecs (the litellm/__init__.py re-export and the sitecustomize.py hook) pushed basedpyright's reportPrivateUsage count over its ceiling in the lint gate. Suppress with the same # pyright: ignore[reportPrivateUsage] convention already used for the sibling _turn_on_json re-export and other internal-but-cross-module helpers. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
8f0f7321a8
commit
7908d3e4b9
2 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ from litellm._logging import (
|
|||
json_logs,
|
||||
_turn_on_json,
|
||||
ecs_logs,
|
||||
_turn_on_ecs,
|
||||
_turn_on_ecs, # pyright: ignore[reportPrivateUsage] # re-exported, matches _turn_on_json above
|
||||
log_level,
|
||||
)
|
||||
import re
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import os
|
|||
|
||||
if os.environ.get("LITELLM_ECS_LOGS", "").lower() == "true":
|
||||
try:
|
||||
from litellm._logging import _turn_on_ecs
|
||||
from litellm._logging import _turn_on_ecs # pyright: ignore[reportPrivateUsage] # public entry point
|
||||
|
||||
_turn_on_ecs()
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue