Skip to content

Commit

Permalink
chore: use Union instead of |
Browse files Browse the repository at this point in the history
  • Loading branch information
5j9 committed Oct 17, 2024
1 parent 149c304 commit 6ac4afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikitextparser/_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def get_bolds_and_italics(
self,
*,
recursive=True,
filter_cls: Optional[Type['Bold'] | Type['Italic']] = None,
filter_cls: Optional[Union[Type['Bold'], Type['Italic']]] = None,
) -> Union[List[Union['Bold', 'Italic']], List['Italic'], List['Bold']]:
"""Return a list of bold and italic objects in self.
Expand Down

0 comments on commit 6ac4afc

Please sign in to comment.