SCP43: Unsupported Path object

What it does

Reports the use of Path objects instead of strings in settings that do not support such objects. It also flags uses of such objects in combination with URI params (see FEED_URI_PARAMS), which is not supported.

Why is this bad?

Trying to use a Path object in a context where it is not supported will lead to run time errors.

Example

from pathlib import Path

FEEDS = {Path("output-%(time)s.json"): {"format": "json"}}

Instead use:

FEEDS = {"output-%(time)s.json": {"format": "json"}}