Skip to content

Commit f1b76fa

Browse files
authored
feat: ✨ allow Optional[] and Union[] typing in Ruff (#344)
1 parent 360dee5 commit f1b76fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

template/.config/ruff.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ignore = [
1818
"D100",
1919
# Use `Optional[]` typing.
2020
"UP045",
21+
# Use `Union[]` typing (not `|`) to be aligned with `Optional[]`.
22+
"UP007",
2123
]
2224

2325
[lint.pydocstyle]

0 commit comments

Comments
 (0)