File: parser_config.pyi

package info (click to toggle)
python-libcst 1.4.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,928 kB
  • sloc: python: 76,235; makefile: 10; sh: 2
file content (40 lines) | stat: -rw-r--r-- 1,146 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import Any, FrozenSet, Mapping, Sequence

from libcst._parser.parso.utils import PythonVersionInfo

class BaseWhitespaceParserConfig:
    def __new__(
        cls,
        *,
        lines: Sequence[str],
        default_newline: str,
    ) -> BaseWhitespaceParserConfig: ...
    lines: Sequence[str]
    default_newline: str

class ParserConfig(BaseWhitespaceParserConfig):
    def __new__(
        cls,
        *,
        lines: Sequence[str],
        encoding: str,
        default_indent: str,
        default_newline: str,
        has_trailing_newline: bool,
        version: PythonVersionInfo,
        future_imports: FrozenSet[str],
    ) -> BaseWhitespaceParserConfig: ...
    # lines is inherited
    encoding: str
    default_indent: str
    # default_newline is inherited
    has_trailing_newline: bool
    version: PythonVersionInfo
    future_imports: FrozenSet[str]

def parser_config_asdict(config: ParserConfig) -> Mapping[str, Any]: ...