File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1212from functools import partial
1313from typing import Union
1414
15- from libcst import native
1615from libcst ._nodes .base import CSTNode
1716from libcst ._nodes .expression import BaseExpression
1817from libcst ._nodes .module import Module
@@ -34,6 +33,8 @@ def _parse(
3433
3534 encoding , source_str = convert_to_utf8 (source , partial = config )
3635
36+ from libcst import native
37+
3738 if entrypoint == "file_input" :
3839 parse = partial (native .parse_module , encoding = encoding )
3940 elif entrypoint == "stmt_input" :
Original file line number Diff line number Diff line change 1+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2+ #
3+ # This source code is licensed under the MIT license found in the
4+ # LICENSE file in the root directory of this source tree.
5+
6+
7+ from unittest import TestCase
8+
9+
10+ class TestImport (TestCase ):
11+ def test_import_libcst (self ) -> None :
12+ import libcst # noqa: F401
You can’t perform that action at this time.
0 commit comments