Skip to content

pmb.helpers.args: pass a Path obj to config.load

Administrator requested to merge craftyguy/cfg_as_path_obj into master

This expects a pathlib.Path object as the argument, but args.config is only a string.

I'm not sure how type hint stuff actually works on python, but the hints for pmb.config.load and others within it all expect a Path type obj, but at runtime it was totally happy passing strings around until it wasn't. Could this have been caught pre-merge in CI?

Merge request reports

Loading