the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit
f22737abfa07605f4ed1a99cfa97a26520b6c5c2)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
If *expand* is set to ``False``, the path will not be expanded using the
variables.
- If *name* is not found, return ``None``.
+ If *name* is not found, raise a :exc:`KeyError`.
.. function:: get_paths([scheme, [vars, [expand]]])
--- /dev/null
+Fix documentation for the return type of :func:`sysconfig.get_path`.