MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / warn_limited

Function warn_limited

lib/sqlalchemy/util/langhelpers.py:1808–1815  ·  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

1806
1807
1808def warn_limited(msg: str, args: Sequence[Any]) -> None:
1809 """Issue a warning with a parameterized string, limiting the number
1810 of registrations.
1811
1812 """
1813 if args:
1814 msg = _hash_limit_string(msg, 10, args)
1815 _warnings_warn(msg, exc.SAWarning)
1816
1817
1818_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