21136: Use typing generics for builtins in api_resources
authorBrett Smith <brett.smith@curii.com>
Sat, 18 Nov 2023 15:18:22 +0000 (10:18 -0500)
committerBrett Smith <brett.smith@curii.com>
Sat, 18 Nov 2023 15:27:03 +0000 (10:27 -0500)
commit6f481c9e2379cc470d2fb392b6fd495fc7cc8f21
tree94f7e49e676f37d5a72d7c2998bb57201567a338
parent7bc4217495b405c98ea4cad8178b8136383486cf
21136: Use typing generics for builtins in api_resources

The immediate problem this solves is that using `list` unqualified as an
annotation causes pdoc to resolve it as the current class' `list`
method, which is not correct.

We could also specify `builtins.list`, but since it doesn't support
subscripting in Python 3.8, that generates a lot of noisy warnings right
now. So this solution is better for now, and we'll probably migrate to
`builtins.list` in the future.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
sdk/python/discovery2pydoc.py