diff options
author | John L. Villalovos <john@sodarock.com> | 2021-03-01 08:47:47 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-03-02 08:27:32 -0800 |
commit | b562458f063c6be970f58c733fe01ec786798549 (patch) | |
tree | d2d99818566ba785c0038671ecf133c9a65714e6 /gitlab/cli.py | |
parent | 5f23ed916aedbd266b9aaa5857461d80c9175031 (diff) | |
download | gitlab-b562458f063c6be970f58c733fe01ec786798549.tar.gz |
chore: put assert statements inside 'if TYPE_CHECKING:'
To be safe that we don't assert while running, put the assert
statements, which are used by mypy to check that types are correct,
inside an 'if TYPE_CHECKING:' block.
Also, instead of asserting that the item is a dict, instead assert
that it is not a requests.Response object. Theoretically the JSON
could return as a list or dict, though at this time we are assuming a
dict.
Diffstat (limited to 'gitlab/cli.py')
0 files changed, 0 insertions, 0 deletions