Skip to content

Commit

Permalink
Use modern type hint syntax throughout the codebase
Browse files Browse the repository at this point in the history
This commit replaces the use of 'Union' type hints with the modern '|' syntax in multiple files for better readability and conciseness. Additionally, it removes unnecessary imports of 'Union' from the 'typing' module.

Signed-off-by: Marcelo Trevisani <[email protected]>
  • Loading branch information
marcelotrevisani committed Nov 13, 2024
1 parent 7830cf3 commit 8e4d442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grayskull/strategy/py_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def _fix_list_requirements(key_deps: str) -> list:
if isinstance(val_deps, str):
val_deps = [val_deps]
for val in val_deps:
if isinstance(val, (tuple, list)):
if isinstance(val, tuple | list):
list_req.extend(list(map(str, val)))
else:
list_req.append(str(val))
Expand Down

0 comments on commit 8e4d442

Please sign in to comment.