Skip to content

Commit

Permalink
Minor syntax fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Vin committed Jul 16, 2021
1 parent bbb4813 commit 3c7ad49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions citoolkit/specifications/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ def language_size(self, min_length: int = None, max_length: int = None) -> int:

def sample(self, min_length: int = None, max_length: int = None) -> Tuple[str,...]:
""" Samples uniformly at random from the language of this specification.
For an AbstractSpec, we first try to compute it's explicit form,
in which case we can rely on the subclasses' sample method.
Otherwise, we make as much of the AbstractSpec tree as explicit as
possible, and then check if we have a "hack" to sample from the
language anyway.
For an AbstractSpec, we first try to compute it's explicit form,
in which case we can rely on the subclasses' sample method.
Otherwise, we make as much of the AbstractSpec tree as explicit as
possible, and then check if we have a "hack" to sample from the
language anyway.
:param min_length: An inclusive lower bound on word size to consider.
:param max_length: An inclusive upper bound on word size to consider.
Expand Down

0 comments on commit 3c7ad49

Please sign in to comment.