Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _internal_warnings(record):
return [
warning for warning in record
if Path(mplcursors.__file__).parent in Path(warning.filename).parents]