Skip to content

Commit 1a5607b

Browse files
committed
enh: add default value to get() params parameter #145
1 parent 44dae4e commit 1a5607b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ def notes(endpoint):
16351635
return msg
16361636

16371637

1638-
def get(endpoint, params, force=False):
1638+
def get(endpoint, params={}, force=False):
16391639
"""Call MLB StatsAPI and return JSON data.
16401640
16411641
This function is for advanced querying of the MLB StatsAPI,

0 commit comments

Comments
 (0)