Issue a warning with a parameterized string, limiting the number of registrations.
(msg: str, args: Sequence[Any])
| 1806 | |
| 1807 | |
| 1808 | def 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]]] = {} |
nothing calls this directly
no test coverage detected