Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cesbit/pyleri
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Mar 16, 2023
2 parents 1d55376 + 1bd9bae commit 4694185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyleri/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Element:
name: t.Optional[str]

@staticmethod
def _validate_element(element: 'Element') -> 'Element':
def _validate_element(element: t.Union[str, 'Element']) -> 'Element':
if isinstance(element, str):
return Token(element)
if isinstance(element, Element):
Expand Down
2 changes: 1 addition & 1 deletion pyleri/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class List(NamedElement):
def __init__(
self,
element: Element,
delimiter: str = ',',
delimiter: t.Union[str, Element] = ',',
mi: int = 0,
ma: t.Optional[int] = None,
opt: bool = False):
Expand Down

0 comments on commit 4694185

Please sign in to comment.