Skip to content

Commit db38266

Browse files
lysnikolaouzsol
andauthored
Upgrade PyYAML-ft version and use new module name (#1353)
* Upgrade PyYAML-ft version and use new module name * add pyre ignore --------- Co-authored-by: Zsolt Dollenstein <[email protected]>
1 parent 0b1a981 commit db38266

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

libcst/tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
from abc import ABC, abstractmethod
2020
from typing import Any, Callable, Dict, List, Tuple, Type
2121

22-
import yaml
22+
try:
23+
import yaml_ft as yaml # pyre-ignore
24+
except ModuleNotFoundError:
25+
import yaml
2326

2427
from libcst import CSTLogicError, LIBCST_VERSION, parse_module, PartialParserConfig
2528
from libcst._parser.parso.utils import parse_version_string

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers = [
2020
requires-python = ">=3.9"
2121
dependencies = [
2222
"pyyaml>=5.2; python_version < '3.13'",
23-
"pyyaml-ft; python_version >= '3.13'",
23+
"pyyaml-ft>=8.0.0; python_version >= '3.13'",
2424
]
2525

2626
[project.urls]

0 commit comments

Comments
 (0)