Skip to content

Commit

Permalink
docs: remove tuple from types when the classes don't expect tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jul 12, 2024
1 parent b4def66 commit 1c85510
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyvo/registry/rtcons.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_search_condition(self, service):

class Freetext(Constraint):
"""
A contraint using plain text to match against title, description,
A constraint using plain text to match against title, description,
subjects, and person names.
"""
_keyword = "keywords"
Expand All @@ -252,6 +252,7 @@ def __init__(self, *words: str):
Parameters
----------
*words : str
One or more string arguments.
It is recommended to pass multiple words in multiple strings
arguments. You can pass in phrases (i.e., multiple words
separated by space), but behaviour might then vary quite
Expand Down Expand Up @@ -392,7 +393,7 @@ def __init__(self, *stds):
Parameters
----------
*stds : tuple of str
*stds : str
one or more standards identifiers. The constraint will
match records that have any of them.
"""
Expand Down Expand Up @@ -467,7 +468,7 @@ def __init__(self, *bands):
Parameters
----------
*bands : tuple of strings
*bands : strings
One or more of the terms given in http://www.ivoa.net/rdf/messenger.
The constraint matches when a resource declares at least
one of the messengers listed.
Expand Down Expand Up @@ -564,6 +565,7 @@ def __init__(self, ivoid, *more_ivoids):
----------
ivoid : string
One or more string arguments.
The IVOA identifier of the resource to match. As RegTAP
requires lowercasing ivoids on ingestion, the constraint
lowercases the ivoid passed in, too.
Expand Down Expand Up @@ -593,7 +595,7 @@ def __init__(self, *patterns):
Parameters
----------
patterns : tuple of strings
patterns : strings
SQL patterns (i.e., ``%`` is 0 or more characters) for
UCDs. The constraint will match when a resource has
at least one column matching one of the patterns.
Expand Down

0 comments on commit 1c85510

Please sign in to comment.