mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
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 <zsol@meta.com>
This commit is contained in:
parent
0b1a9810ae
commit
db38266f1d
2 changed files with 5 additions and 2 deletions
|
|
@ -19,7 +19,10 @@ import textwrap
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import Any, Callable, Dict, List, Tuple, Type
|
||||
|
||||
import yaml
|
||||
try:
|
||||
import yaml_ft as yaml # pyre-ignore
|
||||
except ModuleNotFoundError:
|
||||
import yaml
|
||||
|
||||
from libcst import CSTLogicError, LIBCST_VERSION, parse_module, PartialParserConfig
|
||||
from libcst._parser.parso.utils import parse_version_string
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ classifiers = [
|
|||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"pyyaml>=5.2; python_version < '3.13'",
|
||||
"pyyaml-ft; python_version >= '3.13'",
|
||||
"pyyaml-ft>=8.0.0; python_version >= '3.13'",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue