Skip to content

Commit

Permalink
improved static types
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Jun 12, 2023
1 parent a21222e commit 0ab1704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avro/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# Import third-party modules.
import re
from typing import Any, Dict, List, Union
from typing import Any, Dict, List, Optional, Union

# Import local modules.
from . import config
Expand Down Expand Up @@ -296,7 +296,7 @@ def reverse_with_rules(cursor: int, fixed_text: str, text_reversed: str) -> str:
return text_reversed if not text_reversed else text_reversed + added_suffix


def process_rules(rules: Dict[str, Any], fixed_text: str, cur: int = 0, cur_end: int = 1) -> Union[Any, None]:
def process_rules(rules: Dict[str, Any], fixed_text: str, cur: int = 0, cur_end: int = 1) -> Optional[str]:
'''
### Process rules matched in pattern and returns suitable replacement.
Expand Down

0 comments on commit 0ab1704

Please sign in to comment.