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