Skip to content

Commit f1ed127

Browse files
committed
fix linting
1 parent 41b18f2 commit f1ed127

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ persistent=yes
8888

8989
# Minimum Python version to use for version dependent checks. Will default to
9090
# the version used to run pylint.
91-
py-version=3.8
91+
py-version=3.10
9292

9393
# Discover python modules and packages in the file system subtree.
9494
recursive=no

oda_api/data_products.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import typing
55
import traceback
66
from warnings import deprecated
7+
import warnings
78

89
from json_tricks import numpy_encode,dumps
910
from astropy.io import fits as pf
@@ -164,10 +165,10 @@ def decode(cls, o_dict: dict[str, typing.Any], use_binary=False):
164165
return cls(typing.cast(Table, t_rec),name=encoded_name,meta_data=encoded_meta_data)
165166

166167

167-
@deprecated('BinaryData class is deprecated, please use BinaryProduct instead')
168168
class BinaryData(object):
169169

170170
def __init__(self,file_path=None):
171+
warnings.warn('BinaryData class is deprecated, please use BinaryProduct instead', DeprecationWarning, stacklevel=2)
171172
self.file_path=file_path
172173

173174
def encode(self,file_path=None):

0 commit comments

Comments
 (0)