Skip to content

Commit

Permalink
fixed pyright error on line 255
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Oct 26, 2024
1 parent b8fa0ac commit d5d296a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avro/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ def reverse(*texts: str, from_bijoy: bool = False, remap_words: bool = True) ->

# Convert from Bijoy to Unicode if from_bijoy is True
if from_bijoy:
texts = to_unicode(*texts)
if isinstance(texts, str):
texts = (texts,)
converted_texts = to_unicode(*texts)
if isinstance(converted_texts, str):
texts = (converted_texts,)

output = _concurrency_helper(lambda text: _reverse_backend_ext(text, remap_words), texts)
return output[0] if len(output) == 1 else output

0 comments on commit d5d296a

Please sign in to comment.