Skip to content

Commit 126ea05

Browse files
committed
deprecation decorator for service_request_async()
syntax fix swap order of decorators
1 parent f44df10 commit 126ea05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

astroquery/mast/services.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import numpy as np
1313

1414
from astropy.table import Table, MaskedColumn
15+
from astropy.utils.decorators import deprecated_renamed_argument
1516

1617
from ..query import BaseQuery
1718
from ..utils import async_to_sync
@@ -222,6 +223,7 @@ def _parse_result(self, response, verbose=False, data_key='data'):
222223
return result_table
223224

224225
@class_or_instance
226+
@deprecated_renamed_argument('page_size', 'pagesize', since='0.4.8')
225227
def service_request_async(self, service, params, pagesize=None, page=None, use_json=False, **kwargs):
226228
"""
227229
Given a MAST fabric service and parameters, builds and executes a fabric microservice catalog query.

0 commit comments

Comments
 (0)