Improve Ghostwriter for max() builtin and similar signatures
#2977
Labels
enhancement
it's not broken, but we want it to be better
max() builtin and similar signatures
#2977
Some builtin functions don't support
inspect.signature(), which the ghostwriter works around by trying to parse their docstring with regex:hypothesis/hypothesis-python/src/hypothesis/extra/ghostwriter.py
Lines 328 to 345 in 3226dd7
However,
max.__doc__highlights a few things not handled by the current pattern:*indicating that following arguments are keyword-only - we should still assume that positional args are pos-only, but assuming that kwonly args are pos-only is sillyThe text was updated successfully, but these errors were encountered: