Skip to content

Commit 1cd3352

Browse files
csvtudaaaltat
authored andcommitted
Remove unnecessary union type hint
1 parent a506175 commit 1cd3352

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

atest/SmallLibrary.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
from typing import Optional, Union
32

43
from robot.api import logger
54
from robotlibcore import DynamicCore, keyword
@@ -14,7 +13,7 @@ def execute_something(self):
1413
class SmallLibrary(DynamicCore):
1514
"""Library documentation."""
1615

17-
def __init__(self, translation: Optional[Union[Path, dict]] = None):
16+
def __init__(self, translation: Path | dict | None = None):
1817
"""__init__ documentation."""
1918
if isinstance(translation, (dict, Path)):
2019
DynamicCore.__init__(self, [KeywordClass()], translation)

0 commit comments

Comments
 (0)