Skip to content

Commit 259dd75

Browse files
committed
chore: keep type annotation syntax compatible with python 3.8
1 parent 531f419 commit 259dd75

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.ruff.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ target-version = "py38"
2727
known-first-party = ["graphql_server"]
2828
force-wrap-aliases = true
2929
combine-as-imports = true
30+
31+
[pyupgrade]
32+
# this keeps annotation syntaxes like Union[X, Y] instead of X | Y
33+
# to not break Python 3.8
34+
# https://beta.ruff.rs/docs/settings/#pyupgrade-keep-runtime-typing
35+
keep-runtime-typing = true

0 commit comments

Comments
 (0)