bpo-36546: Mark first argument as position only (GH-14363)

This commit is contained in:
Raymond Hettinger 2019-06-25 04:39:22 +02:00 committed by GitHub
parent 3f5b9088b0
commit 1791128677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -603,7 +603,7 @@ def multimode(data):
# options make for easier choices and that external packages can be
# used for anything more advanced.
def quantiles(dist, *, n=4, method='exclusive'):
def quantiles(dist, /, *, n=4, method='exclusive'):
'''Divide *dist* into *n* continuous intervals with equal probability.
Returns a list of (n - 1) cut points separating the intervals.