This repository was archived by the owner on May 21, 2024. It is now read-only.

Description
Some of our client methods accept various types for inputs, for example in get_file(commit, path, URL), the commit can be a tuple, string, or Commit object. While we do some type checking with
|
def commit_from(src, allow_just_repo=False): |
, but this might break for users that specified an invalid string, or a string that got the order of repo and commit wrong.
In general, we want to add type checking where possible, and raise meaningful exceptions when inputs are not valid.