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:
Lysandros Nikolaou 2025-06-10 18:21:21 +02:00 committed by GitHub
parent 0b1a9810ae
commit db38266f1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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]