Skip to content

Commit

Permalink
Fixed annotation style for return - mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Magnan committed Jun 3, 2024
1 parent b9fc0aa commit a2576c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outlines/fsm/json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import re
import warnings
from typing import Callable, Optional
from typing import Callable, Optional, Tuple

from jsonschema.protocols import Validator
from pydantic import create_model
Expand Down Expand Up @@ -98,7 +98,7 @@ def _get_num_items_pattern(min_items, max_items, whitespace_pattern):

def validate_quantifiers(
min_bound: Optional[str], max_bound: Optional[str], start_offset: int = 0
) -> (str, str):
) -> Tuple[str, str]:
"""
Ensures that the bounds of a number are valid. Bounds are used as quantifiers in the regex.
Expand Down

0 comments on commit a2576c6

Please sign in to comment.