Skip to content

Commit 81efc2d

Browse files
committed
Update target version
1 parent de6a884 commit 81efc2d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyls_black/plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ def load_config(filename: str) -> Dict:
9797
black.TargetVersion[x.upper()] for x in file_config["target_version"]
9898
)
9999
elif file_config.get("py36"):
100-
target_version = black.PY36_VERSIONS
100+
target_version = {
101+
black.TargetVersion.PY36,
102+
black.TargetVersion.PY37,
103+
black.TargetVersion.PY38,
104+
black.TargetVersion.PY39,
105+
}
101106
else:
102107
target_version = set()
103108

0 commit comments

Comments
 (0)