MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / warn_limited

Function warn_limited

lib/sqlalchemy/util/langhelpers.py:1898–1905  ·  view source on GitHub ↗

Issue a warning with a parameterized string, limiting the number of registrations.

(msg: str, args: Sequence[Any])

Source from the content-addressed store, hash-verified

1896
1897
1898def warn_limited(msg: str, args: Sequence[Any]) -> None:
1899 """Issue a warning with a parameterized string, limiting the number
1900 of registrations.
1901
1902 """
1903 if args:
1904 msg = _hash_limit_string(msg, 10, args)
1905 _warnings_warn(msg, exc.SAWarning)
1906
1907
1908_warning_tags: Dict[CodeType, Tuple[str, Type[Warning]]] = {}

Callers

nothing calls this directly

Calls 2

_hash_limit_stringClass · 0.85
_warnings_warnFunction · 0.85

Tested by

no test coverage detected