Skip to content

Commit

Permalink
chore(style): Use set for set inclusion condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 27, 2024
1 parent 1b241b8 commit 74e50ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocdskingfishercolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def download_package_from_query(sql, package_type=None):
:param str package_type: "record" or "release"
:raises UnknownPackageTypeError: when the provided package type is unknown
"""
if package_type not in ('record', 'release'):
if package_type not in {'record', 'release'}:
raise UnknownPackageTypeError("package_type argument must be either 'release' or 'record'")

data = _pluck(sql)
Expand All @@ -308,7 +308,7 @@ def download_package_from_ocid(collection_id, ocid, package_type):
:param str package_type: "record" or "release"
:raises UnknownPackageTypeError: when the provided package type is unknown
"""
if package_type not in ('record', 'release'):
if package_type not in {'record', 'release'}:
raise UnknownPackageTypeError("package_type argument must be either 'release' or 'record'")

sql = """
Expand Down

0 comments on commit 74e50ce

Please sign in to comment.