summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-03-01 08:47:47 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-03-02 08:27:32 -0800
commitb562458f063c6be970f58c733fe01ec786798549 (patch)
treed2d99818566ba785c0038671ecf133c9a65714e6 /gitlab/utils.py
parent5f23ed916aedbd266b9aaa5857461d80c9175031 (diff)
downloadgitlab-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/utils.py')
0 files changed, 0 insertions, 0 deletions