Skip to content

Commit

Permalink
entry.py: use Sequence type
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 2, 2025
1 parent fb23cfd commit d93a32f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyglossary/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import re
import shutil
from collections.abc import Sequence
from os.path import (
dirname,
getsize,
Expand Down Expand Up @@ -224,7 +225,7 @@ def __init__(
"x": xdxf.
"""
# memory optimization:
if isinstance(word, list | tuple):
if isinstance(word, Sequence):
if len(word) == 1:
word = word[0]
elif not isinstance(word, str):
Expand Down

0 comments on commit d93a32f

Please sign in to comment.