python (3.12.0)
1 # helper to the helper for testing skip_file_prefixes.
2
3 import os
4
5 package_path = os.path.dirname(__file__)
6
7 def inner_api(message, *, stacklevel, warnings_module):
8 warnings_module.warn(
9 message, stacklevel=stacklevel,
10 skip_file_prefixes=(package_path,))